summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-09-19 11:35:53 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-09-19 11:35:53 +0200
commit7605509f7cc97e5e94d3159f9cd5c2c98b876720 (patch)
tree9f417dc5b0ab3c5e9f65a33a45675fb523e4d117 /apt-pkg/pkgcachegen.cc
parent6fdb6892cbc333b6be5ff6a3cc55879a17f78430 (diff)
* apt-pkg/pkgcachegen.cc:
- ensure that dependencies for packages:none are always generated
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r--apt-pkg/pkgcachegen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index 54b07c465..5f37330c9 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -922,7 +922,7 @@ bool pkgCacheGenerator::ListParser::NewDepends(pkgCache::VerIterator &Ver,
// Locate the target package
pkgCache::PkgIterator Pkg = Grp.FindPkg(Arch);
// we don't create 'none' packages and their dependencies if we can avoid it …
- if (Pkg.end() == true && Arch == "none")
+ if (Pkg.end() == true && Arch == "none" && strcmp(Ver.ParentPkg().Arch(), "none") != 0)
return true;
Dynamic<pkgCache::PkgIterator> DynPkg(Pkg);
if (Pkg.end() == true) {