summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-02-07 12:38:13 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-02-07 12:38:13 +0100
commit857e9c13d8d9808fcd1ac8ff3469f6c0b90b7fea (patch)
tree32e8b6a9b8de4362ba9f038a4e938b4ce93c5e90 /apt-pkg/pkgcache.cc
parent25396fb06350344996a20d05423562f08a4165db (diff)
Drop the Arch information from the Version structure as we can get
the information from the parent package now
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r--apt-pkg/pkgcache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc
index 1e4c7edb3..7d98869ea 100644
--- a/apt-pkg/pkgcache.cc
+++ b/apt-pkg/pkgcache.cc
@@ -399,7 +399,7 @@ const char *
pkgCache::PkgIterator::CandVersion() const
{
//TargetVer is empty, so don't use it.
- VerIterator version = pkgPolicy::pkgPolicy(Owner).GetCandidateVer(*this);
+ VerIterator version = pkgPolicy(Owner).GetCandidateVer(*this);
if (version.IsGood())
return version.VerStr();
return 0;
@@ -727,7 +727,7 @@ string pkgCache::VerIterator::RelStr()
Res += File.Site();
}
}
- if (S->Arch != 0)
+ if (S->ParentPkg != 0)
Res.append(" [").append(Arch()).append("]");
return Res;
}