[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#598729: debootstrap: Does not use correct data.tar in .deb ar extractor



Package: debootstrap
Version: 1.0.25
Tags: patch

Hi!

Commit r61340 introduced a small bug to the ar extractor for non-gz
data.tar in .debs. Attached is a trivial fix for that.

thanks,
guillem
Index: functions
===================================================================
--- functions	(revision 64876)
+++ functions	(working copy)
@@ -777,7 +777,7 @@
 	esac
 
 	if type $cat_cmd >/dev/null 2>&1; then
-		ar -p "$pkg" data.tar.gz | $cat_cmd | tar -xf -
+		ar -p "$pkg" "$tarball" | $cat_cmd | tar -xf -
 	else
 		error 1 UNPACKCMDUNVL "The $cat_cmd is not available on the system"
 	fi

Reply to: