summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-12-07 15:47:58 +0100
committerJulian Andres Klode <jak@debian.org>2010-12-07 15:47:58 +0100
commitf23fc0e0903c9fdf3f57a2c46d1f57abb4655e5c (patch)
tree99a71d1aa00e80381661ce442109afbee3a1a459 /cmdline/apt-cache.cc
parent4279ef3b0a35327a03955461fff3cd6821463457 (diff)
cmdline/apt-cache.cc: Create an error for apt-cache depends
if packages could not found (LP: #647045)
Diffstat (limited to 'cmdline/apt-cache.cc')
-rw-r--r--cmdline/apt-cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 79654f477..45ea50433 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -588,7 +588,7 @@ bool ShowDepends(CommandLine &CmdL, bool const RevDepends)
CacheSetHelperVirtuals helper(false);
APT::VersionSet verset = APT::VersionSet::FromCommandLine(CacheFile, CmdL.FileList + 1, APT::VersionSet::CANDIDATE, helper);
if (verset.empty() == true && helper.virtualPkgs.empty() == true)
- return false;
+ return _error->Error(_("No packages found"));
std::vector<bool> Shown(Cache->Head().PackageCount);
bool const Recurse = _config->FindB("APT::Cache::RecurseDepends", false);