From f23fc0e0903c9fdf3f57a2c46d1f57abb4655e5c Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 7 Dec 2010 15:47:58 +0100 Subject: [PATCH] cmdline/apt-cache.cc: Create an error for apt-cache depends if packages could not found (LP: #647045) --- cmdline/apt-cache.cc | 2 +- debian/changelog | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 Shown(Cache->Head().PackageCount); bool const Recurse = _config->FindB("APT::Cache::RecurseDepends", false); diff --git a/debian/changelog b/debian/changelog index 96a2bd15b..aa0ff30d4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 07 Dec 2010 15:47:11 +0100 + apt (0.8.10) unstable; urgency=low [ Programs translations ] -- 2.45.2