From 15b992c58f74f98f7755418d07e9693b2465b882 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 12 Jun 2002 17:37:36 +0000 Subject: [PATCH] * Fix for extracting control files from debs on systems w/o dpkg-deb. Don't try to extract "file", just "./file". --- Alien/Package/Deb.pm | 6 ++---- debian/changelog | 7 +++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Alien/Package/Deb.pm b/Alien/Package/Deb.pm index 5e7021c..efba3b1 100644 --- a/Alien/Package/Deb.pm +++ b/Alien/Package/Deb.pm @@ -136,12 +136,10 @@ sub getcontrolfile { return "(mkdir /tmp/tar_out.$$ &&". " cd /tmp/tar_out.$$ &&". - # Have to handle old debs without a leading ./ and - # new ones with it. - " tar xf - $file ./$file &&". + " tar xf - ./$file &&". " 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` } } diff --git a/debian/changelog b/debian/changelog index 1be02d6..0901ce7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Wed, 12 Jun 2002 13:34:09 -0400 + alien (8.10) unstable; urgency=low * Build alien with debhelper v4.