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 02b9cb2..28c8985 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)