]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/policy.cc
merged r1970 lp:~vorlon/apt/lp.968828
[apt.git] / apt-pkg / policy.cc
index e6c44ebe27e5e075553b2505020dc025383581f9..b47dab90c65e20f0b95696db17c5cbef779c7095 100644 (file)
@@ -66,7 +66,8 @@ pkgPolicy::pkgPolicy(pkgCache *Owner) : Pins(0), PFPriority(0), Cache(Owner)
       {
         if ((F->Archive != 0 && vm.ExpressionMatches(DefRel, F.Archive()) == true) ||
             (F->Codename != 0 && vm.ExpressionMatches(DefRel, F.Codename()) == true) ||
-            (F->Version != 0 && vm.ExpressionMatches(DefRel, F.Version()) == true))
+            (F->Version != 0 && vm.ExpressionMatches(DefRel, F.Version()) == true) ||
+            (DefRel.length() > 2 && DefRel[1] == '='))
            found = true;
       }
       if (found == false)