]> 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:46:11 +0000 (18:46 +0200)
Seems this was missed somehow.

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

index 30ae91ccabfd20a3e32c83d988b38afb718a1f08..4ac5aa23837b09420eb8c9ba526186b17870525d 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)