diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:08 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:08 +0000 |
commit | 3d615484858169e6732ef4f236fd3f38d0083a89 (patch) | |
tree | af17b8d0fd6f7b95e5298598d3ceb8dba3ac3f42 | |
parent | f1663bdf8391e09939e88f070171ed3fe3ab2cbd (diff) |
More bugs fixes
Author: jgg
Date: 1998-12-10 04:22:45 GMT
More bugs fixes
-rw-r--r-- | apt-pkg/depcache.cc | 7 | ||||
-rw-r--r-- | apt-pkg/packagemanager.cc | 3 | ||||
-rw-r--r-- | apt-pkg/sourcelist.cc | 5 | ||||
-rw-r--r-- | cmdline/apt-cache.cc | 8 | ||||
-rw-r--r-- | cmdline/apt-get.cc | 8 | ||||
-rw-r--r-- | doc/apt-cdrom.8.yo | 7 | ||||
-rw-r--r-- | methods/http.cc | 5 |
7 files changed, 31 insertions, 12 deletions
diff --git a/apt-pkg/depcache.cc b/apt-pkg/depcache.cc index 7f9ded720..eb9d5a35b 100644 --- a/apt-pkg/depcache.cc +++ b/apt-pkg/depcache.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: depcache.cc,v 1.10 1998/12/08 01:34:07 jgg Exp $ +// $Id: depcache.cc,v 1.11 1998/12/10 04:22:45 jgg Exp $ /* ###################################################################### Dependency Cache - Caches Dependency information. @@ -588,7 +588,10 @@ void pkgDepCache::MarkDelete(PkgIterator const &Pkg) RemoveSizes(Pkg); RemoveStates(Pkg); - P.Mode = ModeDelete; + if (Pkg->CurrentVer == 0) + P.Mode = ModeKeep; + else + P.Mode = ModeDelete; P.InstallVer = 0; P.Flags &= Flag::Auto; diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc index dd9d8586d..3fc88586b 100644 --- a/apt-pkg/packagemanager.cc +++ b/apt-pkg/packagemanager.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: packagemanager.cc,v 1.9 1998/12/08 01:34:12 jgg Exp $ +// $Id: packagemanager.cc,v 1.10 1998/12/10 04:22:46 jgg Exp $ /* ###################################################################### Package Manager - Abstacts the package manager @@ -371,7 +371,6 @@ bool pkgPackageManager::SmartUnPack(PkgIterator Pkg) if (Pkg.State() == pkgCache::PkgIterator::NeedsConfigure && Cache[Pkg].Keep() == true) { - cout << "Bailing" << endl; List->Flag(Pkg,pkgOrderList::UnPacked,pkgOrderList::States); if (List->IsFlag(Pkg,pkgOrderList::Immediate) == true) if (SmartConfigure(Pkg) == false) diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc index c3fb5642f..371898810 100644 --- a/apt-pkg/sourcelist.cc +++ b/apt-pkg/sourcelist.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: sourcelist.cc,v 1.8 1998/10/20 04:33:15 jgg Exp $ +// $Id: sourcelist.cc,v 1.9 1998/12/10 04:22:47 jgg Exp $ /* ###################################################################### List of Sources @@ -254,6 +254,9 @@ string pkgSourceList::Item::ArchiveInfo(pkgCache::VerIterator Ver) const Res += " "; Res += Ver.ParentPkg().Name(); + Res += " "; + Res += Ver.VerStr(); + break; }; return Res; diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc index b20227153..429c36a3d 100644 --- a/cmdline/apt-cache.cc +++ b/cmdline/apt-cache.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: apt-cache.cc,v 1.16 1998/12/07 00:34:22 jgg Exp $ +// $Id: apt-cache.cc,v 1.17 1998/12/10 04:22:48 jgg Exp $ /* ###################################################################### apt-cache - Manages the cache files @@ -500,6 +500,12 @@ int main(int argc,const char *argv[]) { if (strcmp(CmdL.FileList[0],"add") == 0) { + ShowHelp(); + break; + } + + if (strcmp(CmdL.FileList[0],"add") == 0) + { DoAdd(CmdL); break; } diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index fbfaf7303..a17d0ce2f 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.28 1998/12/08 23:52:24 jgg Exp $ +// $Id: apt-get.cc,v 1.29 1998/12/10 04:22:51 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -208,6 +208,7 @@ void ShowDel(ostream &out,pkgDepCache &Dep) for (;I.end() != true; I++) if (Dep[I].Delete() == true) List += string(I.Name()) + " "; + ShowList(out,"The following packages will be REMOVED:",List); } /*}}}*/ @@ -958,7 +959,7 @@ bool DoCheck(CommandLine &CmdL) // ShowHelp - Show a help screen /*{{{*/ // --------------------------------------------------------------------- /* */ -int ShowHelp() +int ShowHelp(CommandLine &CmdL) { cout << PACKAGE << ' ' << VERSION << " for " << ARCHITECTURE << " compiled on " << __DATE__ << " " << __TIME__ << endl; @@ -1057,6 +1058,7 @@ int main(int argc,const char *argv[]) {"dselect-upgrade",&DoDSelectUpgrade}, {"clean",&DoClean}, {"check",&DoCheck}, + {"help",&ShowHelp}, {0,0}}; // Parse the command line and initialize the package library @@ -1071,7 +1073,7 @@ int main(int argc,const char *argv[]) // See if the help should be shown if (_config->FindB("help") == true || CmdL.FileSize() == 0) - return ShowHelp(); + return ShowHelp(CmdL); // Setup the output streams c0out.rdbuf(cout.rdbuf()); diff --git a/doc/apt-cdrom.8.yo b/doc/apt-cdrom.8.yo index 5c1f13b6f..4811578e3 100644 --- a/doc/apt-cdrom.8.yo +++ b/doc/apt-cdrom.8.yo @@ -63,7 +63,12 @@ Fast Copy; Assume the package files are valid and do not check every package. This option should be used only if bf(apt-cdrom) has been run on this disc before and did not detect any errors. See bf(APT::CDROM::Fast). - + +dit(bf(-a, --thorough)) +Thorough Package Scan; This option may be needed with some old Debian 1.1/1.2 +burns that have Package files in strange places. It takes much longer to +scan the CD but will pick them all up. + dit(bf(-n --just-print, --recon, --no-act)) No Changes; Do not change the sources.list and do not write package files. Everything is still checked however. diff --git a/methods/http.cc b/methods/http.cc index c5a227dd7..20d976340 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: http.cc,v 1.11 1998/12/07 07:32:03 jgg Exp $ +// $Id: http.cc,v 1.12 1998/12/10 04:22:53 jgg Exp $ /* ###################################################################### HTTP Aquire Method - This is the HTTP aquire method for APT. @@ -791,6 +791,7 @@ bool HttpMethod::ServerDie(ServerState *Srv) if (Srv->In.IsLimit() == false && Srv->State != ServerState::Header && Srv->Encoding != ServerState::Closes) { + Srv->Close(); if (errno == 0) return _error->Error("Error reading from server Remote end closed connection"); return _error->Errno("read","Error reading from server"); @@ -1005,7 +1006,7 @@ int HttpMethod::Loop() case 1: { FailCounter++; - _error->DumpErrors(); + _error->Discard(); Server->Close(); continue; } |