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

Bug#274677: dpkg-gencontrol broken on architectures with a "-" in their name



Package: dpkg-dev
Version: 1.10.23
Tags: patch

dpkg-gencontrol do remove entries already present in debian/files but
fails to do it when a "-" is in the arch-name (like on "hurd-i386)
because of a small error in the regexp.

Here is the fix :
----------------------------------------------------------------------
--- /usr/bin/dpkg-gencontrol.orig       2004-10-03 16:50:52.000000000
+0200
+++ /usr/bin/dpkg-gencontrol    2004-10-03 17:03:47.000000000 +0200
@@ -242,7 +242,7 @@
     binmode(X);
     while (<X>) {
         chomp;
-        next if m/^([-+0-9a-z.]+)_[^_]+_(\w+)\.deb /
+        next if m/^([-+0-9a-z.]+)_[^_]+_([-\w]+)\.deb /
                 && ($1 eq $oppackage) && ($2 eq $arch || $2 eq 'all');
         print(Y "$_\n") || &syserr("copy old entry to new files list
         file");
     }
----------------------------------------------------------------------

-- 
Marc Dequènes (Duck)

Attachment: pgpTvUMfRgj_Y.pgp
Description: PGP signature


Reply to: