summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-08-16 15:59:22 +0200
committerJulian Andres Klode <jak@debian.org>2015-08-16 15:59:22 +0200
commitfe9a05dfc97769c8494dc1744822d959639eb312 (patch)
treef5428bb4a61791f5c172b32cc4d720227c2bcc9d
parent35ea8b154b105727cf0a0f0238d51b82a0d7c045 (diff)
When looking if Provides match, OR them with the normal patches
Simply overriding the value caused patterns that previously matched a real package name to not match anymore. Closes: #760868
-rw-r--r--cmdline/apt-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index a03224986..75337fa07 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1440,7 +1440,7 @@ static bool Search(CommandLine &CmdL)
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];
}
}