diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-01-19 13:12:14 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-01-19 13:12:14 +0100 |
commit | 3a5ec3053c00ff5db058f1ddd99bf23591b9a181 (patch) | |
tree | 44bc915f8c36e77dc9dce92a46094a1bac3cd0a7 /apt-pkg | |
parent | 67b5d3dc34e88e092c8e5f05efc82370a873c80f (diff) |
if multi-arch is detected ensure that pkg:all is reported as pkg:all
Versions with arch:all are added to the package with the native arch,
so we can't rely on Pkg.Arch() for the architecture
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 0dc00e8ad..6feada4cc 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1090,7 +1090,10 @@ bool pkgDPkgPM::Go(int OutStatusFd) } else { - char * const fullname = strdup(I->Pkg.FullName(false).c_str()); + std::string name = I->Pkg.Name(); + pkgCache::VerIterator PkgVer = Cache[I->Pkg].InstVerIter(Cache); + name.append(":").append(PkgVer.Arch()); + char * const fullname = strdup(name.c_str()); Packages.push_back(fullname); ADDARG(fullname); } |