cmdline/apt-cache.cc: Create an error for apt-cache depends
authorJulian Andres Klode <jak@debian.org>
Tue, 7 Dec 2010 14:47:58 +0000 (15:47 +0100)
committerJulian Andres Klode <jak@debian.org>
Tue, 7 Dec 2010 14:47:58 +0000 (15:47 +0100)
if packages could not found (LP: #647045)

cmdline/apt-cache.cc
debian/changelog

index 79654f4..45ea504 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);
index 96a2bd1..aa0ff30 100644 (file)
@@ -1,3 +1,10 @@
+apt (0.8.11) unstable; urgency=low
+
+  * cmdline/apt-cache.cc: Create an error for apt-cache depends
+    if packages could not found (LP: #647045)
+
+ -- Julian Andres Klode <jak@debian.org>  Tue, 07 Dec 2010 15:47:11 +0100
+
 apt (0.8.10) unstable; urgency=low
 
   [ Programs translations ]