summaryrefslogtreecommitdiff
path: root/cmdline/apt-cache.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-02-03 15:37:41 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-02-03 15:37:41 +0100
commit931dcf2f960c6a2b117ab3cc847ce51c04e2140c (patch)
tree633dd1ca8e7e40cfa25d6227d9859b04bd9d1fad /cmdline/apt-cache.cc
parent7763525dea18d978a1df8eee4a517314ae49ca71 (diff)
parent7c748f4aa1bd47089672353fd1a401d1c5c94723 (diff)
merged from the debian-sid branch
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);