The following commit has been merged in the master branch:
commit ad41337649227894f3527107a77a49dd4d81d239
Author: Guillem Jover <[email protected]>
Date:   Wed Feb 2 08:45:49 2011 +0100

    libdpkg: Do not allow Architecture all packges with Multi-Arch field

diff --git a/lib/dpkg/parse.c b/lib/dpkg/parse.c
index 5897628..5d254b4 100644
--- a/lib/dpkg/parse.c
+++ b/lib/dpkg/parse.c
@@ -200,6 +200,10 @@ pkg_parse_verify(struct parsedb_state *ps,
   if (pkgbin->arch == NULL)
     pkgbin->arch = dpkg_arch_find(NULL);
 
+  if (pkgbin->arch->type == arch_all && pkgbin->multiarch == multiarch_same)
+    parse_error(ps, _("package has field '%s' but is architecture all"),
+                "Multi-Arch: same");
+
   /* Check the Config-Version information:
    * If there is a Config-Version it is definitely to be used, but
    * there shouldn't be one if the package is ‘installed’ (in which case

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to