X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/e102791adef7375c3e6fa7c8f58d74105bd58d25..ab5498ab68d6f83dbae3099287466573f2707467:/cmdline/apt-get.cc?ds=sidebyside diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 652825903..fbfaf7303 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-get.cc,v 1.25 1998/12/06 06:22:01 jgg Exp $ +// $Id: apt-get.cc,v 1.28 1998/12/08 23:52:24 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -135,7 +135,7 @@ void ShowBroken(ostream &out,pkgDepCache &Cache) pkgCache::DepIterator Start; pkgCache::DepIterator End; D.GlobOr(Start,End); - + if (Cache.IsImportantDep(End) == false || (Cache[End] & pkgDepCache::DepGInstall) == pkgDepCache::DepGInstall) continue; @@ -397,6 +397,8 @@ bool CacheFile::Open() pkgMakeStatusCache(List,Progress); if (_error->PendingError() == true) return _error->Error("The package lists or status file could not be parsed or opened."); + if (_error->empty() == false) + _error->Warning("You may want to run apt-get update to correct theses missing files"); Progress.Done(); @@ -483,7 +485,7 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true) if (Cache->DelCount() == 0 && Cache->InstCount() == 0 && Cache->BadCount() == 0) - return true; + return true; // Run the simulator .. if (_config->FindB("APT::Get::Simulate") == true)