Author: mdz
Date: 2003-07-22 03:10:01 GMT
* Have apt-cache show exit with an error if it cannot find any of the
specified packages (Closes: #101490)
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-cache.cc,v 1.64 2003/05/15 09:39:38 piefel Exp $
+// $Id: apt-cache.cc,v 1.65 2003/07/22 03:10:01 mdz Exp $
/* ######################################################################
apt-cache - Manages the cache files
/* ######################################################################
apt-cache - Manages the cache files
{
pkgCache &Cache = *GCache;
pkgDepCache::Policy Plcy;
{
pkgCache &Cache = *GCache;
pkgDepCache::Policy Plcy;
for (const char **I = CmdL.FileList + 1; *I != 0; I++)
{
for (const char **I = CmdL.FileList + 1; *I != 0; I++)
{
// Find the proper version to use.
if (_config->FindB("APT::Cache::AllVersions","true") == true)
{
// Find the proper version to use.
if (_config->FindB("APT::Cache::AllVersions","true") == true)
{
+
+ if (found > 0)
+ return true;
+ return _error->Error(_("No packages found"));
}
/*}}}*/
// ShowPkgNames - Show package names /*{{{*/
}
/*}}}*/
// ShowPkgNames - Show package names /*{{{*/
archives and not changing the system (Closes: #190862)
* Skip version check if a build-dependency is provided by an installed package
(Closes: #126938)
archives and not changing the system (Closes: #190862)
* Skip version check if a build-dependency is provided by an installed package
(Closes: #126938)
+ * Have apt-cache show exit with an error if it cannot find any of the
+ specified packages (Closes: #101490)