summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-04-24 13:15:33 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-04-24 13:15:33 +0200
commit08bd372d9dd5e4a56176ec08bf6e7870ecd41b32 (patch)
tree8f5a49dfe7ebf9148f944a9120ee8d038e9cb661 /cmdline
parentc3a3a1b1b68706df40dc022bdcdf8ede684f5956 (diff)
set also "all" to this version for pseudo packages in TryToChangeVer
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 672f64c68..b43164c2f 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1264,6 +1264,11 @@ bool TryToChangeVer(pkgCache::PkgIterator Pkg,pkgDepCache &Cache,
}
Cache.SetCandidateVersion(Ver);
+
+ // Set the all package to the same candidate
+ if (Ver.Pseudo() == true)
+ Cache.SetCandidateVersion(Match.Find(Pkg.Group().FindPkg("all")));
+
return true;
}
/*}}}*/