From: Julian Andres Klode Date: Sun, 16 Aug 2015 13:59:22 +0000 (+0200) Subject: When looking if Provides match, OR them with the normal patches X-Git-Tag: 1.1.exp9~15 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/fe9a05dfc97769c8494dc1744822d959639eb312?ds=inline;hp=35ea8b154b105727cf0a0f0238d51b82a0d7c045 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 --- 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]; } }