]> git.saurik.com Git - apt.git/blobdiff - apt-private/private-cacheset.cc
Ensure we have a Policy in CacheFile.BuildDepCache()
[apt.git] / apt-private / private-cacheset.cc
index 159e1d8f188d044685b9765cf38f77fc5a1fb729..e37e7b227455e7a44aebc76a2a71d0a1ba203e6c 100644 (file)
@@ -55,10 +55,7 @@ bool GetLocalitySortedVersionSet(pkgCacheFile &CacheFile,
       }
       else if (_config->FindB("APT::Cmd::Upgradable") == true)
       {
       }
       else if (_config->FindB("APT::Cmd::Upgradable") == true)
       {
-         pkgPolicy *policy = CacheFile.GetPolicy();
-         if(P.CurrentVer() && 
-            state.Upgradable() && 
-            policy->GetCandidateVer(P) != P.CurrentVer())
+         if(P.CurrentVer() && state.Upgradable())
          {
              pkgPolicy *policy = CacheFile.GetPolicy();
              output_set.insert(policy->GetCandidateVer(P));
          {
              pkgPolicy *policy = CacheFile.GetPolicy();
              output_set.insert(policy->GetCandidateVer(P));