From 0e688a252568901e0b7b0eb2b53c396e62bf4d61 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 21 Nov 2018 10:28:04 +0100 Subject: Print useful error on "apt changelog" without arguments Fixes Debian/apt#77 --- apt-private/private-download.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-private') diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index 8bd7e33e0..2c12676ea 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -248,7 +248,7 @@ bool DoChangelog(CommandLine &CmdL) APT::VersionList verset = APT::VersionList::FromCommandLine(Cache, CmdL.FileList + 1, APT::CacheSetHelper::CANDIDATE, helper); if (verset.empty() == true) - return false; + return _error->Error(_("No packages found")); bool const downOnly = _config->FindB("APT::Get::Download-Only", false); bool const printOnly = _config->FindB("APT::Get::Print-URIs", false); -- cgit v1.2.3