]> git.saurik.com Git - apt.git/commitdiff
Fix debListParser to accept "no" as a value for the Multi-Arch field
authorJulian Andres Klode <jak@debian.org>
Sun, 24 Aug 2014 16:43:07 +0000 (18:43 +0200)
committerJulian Andres Klode <jak@debian.org>
Sun, 24 Aug 2014 16:43:07 +0000 (18:43 +0200)
Seems this was missed somehow.

Closes: #759099
apt-pkg/deb/deblistparser.cc

index 02b9cb239b15d59393726ef70227d18ccf1911ce..28c898542db054710961de78668bdbfbfabdd60c 100644 (file)
@@ -108,7 +108,7 @@ unsigned char debListParser::ParseMultiArch(bool const showErrors)  /*{{{*/
 {
    unsigned char MA;
    string const MultiArch = Section.FindS("Multi-Arch");
-   if (MultiArch.empty() == true)
+   if (MultiArch.empty() == true || MultiArch == "no")
       MA = pkgCache::Version::None;
    else if (MultiArch == "same") {
       if (ArchitectureAll() == true)