diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-02-07 12:38:13 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-02-07 12:38:13 +0100 |
commit | 857e9c13d8d9808fcd1ac8ff3469f6c0b90b7fea (patch) | |
tree | 32e8b6a9b8de4362ba9f038a4e938b4ce93c5e90 /apt-pkg/pkgcache.cc | |
parent | 25396fb06350344996a20d05423562f08a4165db (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.cc | 4 |
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; } |