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

[Patch] for new Package format



Hi,

as discribed in the BTS the Package format has changes a bit (Filename is now 
FileName). Here is the Patch to make debian-cd work with this changes:

root@plichta:/usr/share/debian-cd/tools# diff -u add_packages.orig add_packages
--- add_packages.orig	Tue Sep  5 18:49:48 2000
+++ add_packages	Tue Sep  5 18:31:14 2000
@@ -24,6 +24,7 @@
 while (defined($_ = <LIST>)) {
 	m/^Package: (\S+)/m and $p = $1;
 	m/^Filename: (\S+)/m and $file = $1;
+	m/^FileName: (\S+)/m and $file = $1;
 	m/^Architecture: (\S+)/m and $arch = $1;
 	m/^Section: (\S+)/m and $section = $1;
 
root@plichta:/usr/share/debian-cd/tools# diff -u mirror_check.orig mirror_check
--- mirror_check.orig	Tue Sep  5 18:50:01 2000
+++ mirror_check	Tue Sep  5 17:46:15 2000
@@ -16,6 +16,7 @@
 	m/^Package: (\S+)/m  and $p = $1;
 	m/^Size: (\d+)/m     and $size = $1;
 	m/^Filename: (\S+)/m and $filename = $1;
+	m/^FileName: (\S+)/m and $filename = $1;
 	m/^MD5sum: (\S+)/m   and $md5sum = $1;
 
 	next if not $p;
root@plichta:/usr/share/debian-cd/tools# diff -u strip-nonUS-bin.orig strip-nonUS-bin
--- strip-nonUS-bin.orig	Tue Sep  5 18:50:11 2000
+++ strip-nonUS-bin	Tue Sep  5 18:34:39 2000
@@ -45,7 +45,7 @@
 while (defined($_=<AVAIL>)) {
     next if not m/^Package: (\S+)\s*$/m;
     $p = $1;
-    if( m/^(Section|Filename): \S*non-US\S*\s*$/m )
+    if( m/^(Section|Filename|FileName): \S*non-US\S*\s*$/m )
     {
         $packages{$p}{"nonus"} = 1;
     } else {


Bye, Michael
-- 
Michael Schlueter,Zimmer 422,Meitnerweg 4,44227 Dortmund,0231-7275720
Mails: michael@johalla.de/schlue@debian.org
GPG Fingerprint = 2B65 3B34 8212 337F B37E  585A 79D9 4694 00E0 D054
PGP Fingerprint = AF DD 1F FA A6 C4 C0 65  F6 45 AD AC 2E F5 16 78



--  
To UNSUBSCRIBE, email to debian-cd-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: