summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-02-12 17:17:16 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-02-12 17:17:16 +0100
commit42d71ab5fe58953a680bd300a99d173e23430d7c (patch)
treed79a294141757a8bc9207bd44fa53cfa13ac006a /apt-pkg/pkgcachegen.cc
parent803ea2a87f81252b2c0d541b8502ed206ce57c84 (diff)
In SingleArch environments we don't need the arch "all" pseudo package
for handling arch:all packages, so we create only one package and stop calling it a pseudo package.
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r--apt-pkg/pkgcachegen.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index c1b546a00..6d103c6b6 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -117,7 +117,8 @@ bool pkgCacheGenerator::MergeList(ListParser &List,
std::vector<string> genArch;
if (List.ArchitectureAll() == true) {
genArch = APT::Configuration::getArchitectures();
- genArch.push_back("all");
+ if (genArch.size() != 1)
+ genArch.push_back("all");
} else
genArch.push_back(List.Architecture());