Explorar o código

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
Julian Andres Klode %!s(int64=11) %!d(string=hai) anos
pai
achega
fe9a05dfc9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmdline/apt-cache.cc

+ 1 - 1
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];
       }
    }