[Secure-testing-commits] r645 - sarge-checks

Joey Hess joeyh@costa.debian.org
Fri, 25 Mar 2005 02:46:59 +0000


Author: joeyh
Date: 2005-03-25 02:46:56 +0000 (Fri, 25 Mar 2005)
New Revision: 645

Modified:
   sarge-checks/checklist
Log:
hack in transparent compressed Sources file support


Modified: sarge-checks/checklist
===================================================================
--- sarge-checks/checklist	2005-03-25 02:44:18 UTC (rev 644)
+++ sarge-checks/checklist	2005-03-25 02:46:56 UTC (rev 645)
@@ -128,7 +128,8 @@
 
 	my @dctrl;
 	if (defined $sources && length $sources) {
-		@dctrl=`grep-dctrl -F Binary kernel-image-$version -s Package,Build-Depends $sources`;
+		my $cat=($sources=~/\.gz/) ? "zcat" : "cat";
+		@dctrl=`$cat $sources | grep-dctrl -F Binary kernel-image-$version -s Package,Build-Depends -`;
 	}
 
 	my $package="";