* Fix for extracting control files from debs on systems w/o dpkg-deb.

Don't try to extract "file", just "./file".
This commit is contained in:
joey
2002-06-12 17:37:36 +00:00
parent c77168987c
commit 15b992c58f
2 changed files with 9 additions and 4 deletions

View File

@@ -136,12 +136,10 @@ sub getcontrolfile {
return "(mkdir /tmp/tar_out.$$ &&". return "(mkdir /tmp/tar_out.$$ &&".
" cd /tmp/tar_out.$$ &&". " cd /tmp/tar_out.$$ &&".
# Have to handle old debs without a leading ./ and " tar xf - ./$file &&".
# new ones with it.
" tar xf - $file ./$file &&".
" cat $file; cd /; rm -rf /tmp/tar_out.$$)"; " cat $file; cd /; rm -rf /tmp/tar_out.$$)";
} }
my $getcontrol = "ar -p $file control.tar.gz | gzip -dc | ".tar_out($controlfile)." 2>/dev/null"; my $getcontrol = "ar -p $file control.tar.gz | gzip -dc | ".tar_out($controlfile);
return `$getcontrol` return `$getcontrol`
} }
} }

7
debian/changelog vendored
View File

@@ -1,3 +1,10 @@
alien (8.11) unstable; urgency=low
* Fix for extracting control files from debs on systems w/o dpkg-deb.
Don't try to extract "file", just "./file".
-- Joey Hess <joeyh@debian.org> Wed, 12 Jun 2002 13:34:09 -0400
alien (8.10) unstable; urgency=low alien (8.10) unstable; urgency=low
* Build alien with debhelper v4. * Build alien with debhelper v4.