]> git.saurik.com Git - apt.git/commitdiff
When looking if Provides match, OR them with the normal patches
authorJulian Andres Klode <jak@debian.org>
Sun, 16 Aug 2015 13:59:22 +0000 (15:59 +0200)
committerJulian Andres Klode <jak@debian.org>
Sun, 16 Aug 2015 13:59:22 +0000 (15:59 +0200)
Simply overriding the value caused patterns that previously matched
a real package name to not match anymore.

Closes: #760868
cmdline/apt-cache.cc

index a0322498652954073f2ba4cc410af21c879ecdaf..75337fa0776c9a0650a7dbc87ac360c8c79a408d 100644 (file)
@@ -1440,7 +1440,7 @@ static bool Search(CommandLine &CmdL)
 
         size_t const PrvPatternOffset = id * NumPatterns;
         for (unsigned I = 0; I < NumPatterns; ++I)
 
         size_t const PrvPatternOffset = id * NumPatterns;
         for (unsigned I = 0; I < NumPatterns; ++I)
-           PatternMatch[PrvPatternOffset + I] = PatternMatch[PatternOffset + I];
+           PatternMatch[PrvPatternOffset + I] |= PatternMatch[PatternOffset + I];
       }
    }
 
       }
    }