diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2010-06-29 19:21:35 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2010-06-29 19:21:35 +0200 |
commit | cf28bcadb301d00f6534fea97ccf1fde63041e7b (patch) | |
tree | fd130174a667a0d0d6cc63da14bb95bb37c34b10 /cmdline/cacheset.cc | |
parent | fb83c1d078b9f5e2e28a828c325dc62dcf060f2b (diff) |
if the package has no installed & candidate but is virtual see if only
one package provides it - if it is only one use this package instead
Diffstat (limited to 'cmdline/cacheset.cc')
-rw-r--r-- | cmdline/cacheset.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmdline/cacheset.cc b/cmdline/cacheset.cc index 35ef74f9a..cc2860a22 100644 --- a/cmdline/cacheset.cc +++ b/cmdline/cacheset.cc @@ -474,6 +474,14 @@ VersionSet CacheSetHelper::canNotFindInstCandVer(pkgCacheFile &Cache, return VersionSet(); } /*}}}*/ +// canNotFindInstCandVer /*{{{*/ +VersionSet CacheSetHelper::canNotFindCandInstVer(pkgCacheFile &Cache, + pkgCache::PkgIterator const &Pkg) { + if (ShowError == true) + _error->Error(_("Can't select installed nor candidate version from package '%s' as it has neither of them"), Pkg.FullName(true).c_str()); + return VersionSet(); +} + /*}}}*/ // canNotFindNewestVer /*{{{*/ pkgCache::VerIterator CacheSetHelper::canNotFindNewestVer(pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg) { |