tags 147574 patch thanks debian.org--2005/dpkg--devel--1.13--patch-9: --- orig/ChangeLog +++ mod/ChangeLog @@ -1,5 +1,9 @@ 2005-07-24 Frank Lichtenheld <[EMAIL PROTECTED]>
+ + * scripts/dpkg-source.pl: handle absolute paths correctly in + all (tested) cases of building (-b) + * scripts/dpkg-source.pl: give more meaningful error message if first argument to dpkg-source -x is a directory --- orig/debian/changelog +++ mod/debian/changelog @@ -13,6 +13,9 @@ * give more meaningful error message if first argument to dpkg-source -x is a directory (Frank Lichtenheld). Closes: #306874 + * handle absolute paths correctly in all (tested) cases of + source package building (dpkg-source -b) (Frank + Lichtenheld). Closes: #147574 -- --- orig/scripts/dpkg-source.pl +++ mod/scripts/dpkg-source.pl @@ -346,15 +346,16 @@ } $expectprefix= $origdir; $expectprefix =~ s,^\./,,; + $expectprefix_dirname = $origdirname; # tar checking is disabled, there are too many broken tar archives out # there # which we can still handle anyway. # checktarsane($origtargz,$expectprefix); mkdir("$origtargz.tmp-nest",0755) || &syserr("unable to create `$origtargz.tmp-nest'"); push @exit_handlers, sub { erasedir("$origtargz.tmp-nest") }; - extracttar($origtargz,"$origtargz.tmp-nest",$expectprefix); - rename("$origtargz.tmp-nest/$expectprefix",$expectprefix) || - &syserr("unable to rename `$origtargz.tmp-nest/$expectprefix' to ". + extracttar($origtargz,"$origtargz.tmp-nest",$expectprefix_dirname); + rename("$origtargz.tmp-nest/$expectprefix_dirname",$expectprefix) || + &syserr("unable to rename `$origtargz.tmp-nest/$expectprefix_dirname' to ". "`$expectprefix'"); rmdir("$origtargz.tmp-nest") || &syserr("unable to remove `$origtargz.tmp-nest'"); Gruesse, -- Frank Lichtenheld <[EMAIL PROTECTED]> www: http://www.djpig.de/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]