]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-cache.cc
merged from lp:~mvo/apt/mvo (which is really lp:~donkult/apt/sid with some updated...
[apt.git] / cmdline / apt-cache.cc
index 79654f47737bc8c8dead28ce4ec71f19b9c07a5d..45ea50433805971898377a208ecc6ab62246a690 100644 (file)
@@ -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);