|
@@ -229,10 +229,7 @@ void ListSingleVersion(pkgCacheFile &CacheFile, pkgRecords &records, /*{{{*/
|
|
|
std::string CandidateVerStr = GetCandidateVersion(CacheFile, P);
|
|
std::string CandidateVerStr = GetCandidateVersion(CacheFile, P);
|
|
|
std::string InstalledVerStr = GetInstalledVersion(CacheFile, P);
|
|
std::string InstalledVerStr = GetInstalledVersion(CacheFile, P);
|
|
|
std::string StatusStr;
|
|
std::string StatusStr;
|
|
|
- if(P.CurrentVer() == V &&
|
|
|
|
|
- state.Upgradable() &&
|
|
|
|
|
- state.CandidateVer != NULL &&
|
|
|
|
|
- policy->GetCandidateVer(P) != P.CurrentVer())
|
|
|
|
|
|
|
+ if(P.CurrentVer() == V && state.Upgradable())
|
|
|
{
|
|
{
|
|
|
strprintf(StatusStr, _("[installed,upgradable to: %s]"),
|
|
strprintf(StatusStr, _("[installed,upgradable to: %s]"),
|
|
|
CandidateVerStr.c_str());
|
|
CandidateVerStr.c_str());
|