summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-11-10 16:10:55 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-11-10 16:10:55 +0100
commit37adedc9d0b66eeae7efb88aebd08dfbc6e06f77 (patch)
treeb0769df88e2b6496f23e3d899aeb1c240a3488d9 /apt-pkg/policy.cc
parentcf4f17a9d87a36b20ef5afa2cb5145e466d8ad3b (diff)
parent04340db392f14e2610189db6f8787e10fbf3c6d0 (diff)
merged from lp:~donkult/apt/experimental
Diffstat (limited to 'apt-pkg/policy.cc')
-rw-r--r--apt-pkg/policy.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc
index e6c44ebe2..b47dab90c 100644
--- a/apt-pkg/policy.cc
+++ b/apt-pkg/policy.cc
@@ -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)