Sfoglia il codice sorgente

Fix debListParser to accept "no" as a value for the Multi-Arch field

Seems this was missed somehow.

Closes: #759099
Julian Andres Klode 12 anni fa
parent
commit
8f617600ae
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      apt-pkg/deb/deblistparser.cc

+ 1 - 1
apt-pkg/deb/deblistparser.cc

@@ -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)