The following commit has been merged in the master branch:
commit 806a7821b2efac4266724bb41ce1cfc0715d0b77
Author: Guillem Jover <guil...@debian.org>
Date:   Sat Mar 17 23:25:08 2012 +0100

    libdpkg: Consider M-A:same package without architecture fatal errors
    
    “Multi-Arch: same” packages require an actual architecture to be able
    to properly handle them, demand it.

diff --git a/lib/dpkg/parse.c b/lib/dpkg/parse.c
index a07b025..b1c4aae 100644
--- a/lib/dpkg/parse.c
+++ b/lib/dpkg/parse.c
@@ -206,6 +206,9 @@ pkg_parse_verify(struct parsedb_state *ps,
   if (pkgbin->arch->type == arch_none)
     pkgbin->arch = dpkg_arch_get(arch_empty);
 
+  if (pkgbin->arch->type == arch_empty && pkgbin->multiarch == multiarch_same)
+    parse_error(ps, _("package has field '%s' but is missing architecture"),
+                "Multi-Arch: same");
   if (pkgbin->arch->type == arch_all && pkgbin->multiarch == multiarch_same)
     parse_error(ps, _("package has field '%s' but is architecture all"),
                 "Multi-Arch: same");

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to