diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:42 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:42 +0000 |
commit | f292686be49d32fdfecc8e386a3d5b4865b2f913 (patch) | |
tree | 230db684b0f341049d93585169cf8f8733271443 | |
parent | 0dfc08291b103774b7b712619846748856920856 (diff) | |
download | apt-f292686be49d32fdfecc8e386a3d5b4865b2f913.tar.gz |
Fixed sort order
Author: jgg
Date: 1999-09-05 20:27:28 GMT
Fixed sort order
-rw-r--r-- | cmdline/apt-get.cc | 13 | ||||
-rw-r--r-- | debian/changelog | 7 |
2 files changed, 14 insertions, 6 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 18888b4d9..b56b441c4 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.72 1999/08/04 05:37:18 jgg Exp $ +// $Id: apt-get.cc,v 1.73 1999/09/05 20:27:37 jgg Exp $ /* ###################################################################### apt-get - Cover for dpkg @@ -270,15 +270,16 @@ void ShowDel(ostream &out,CacheFile &Cache) // ShowKept - Show kept packages /*{{{*/ // --------------------------------------------------------------------- /* */ -void ShowKept(ostream &out,pkgDepCache &Dep) +void ShowKept(ostream &out,CacheFile &Cache) { - pkgCache::PkgIterator I = Dep.PkgBegin(); string List; - for (;I.end() != true; I++) + for (unsigned J = 0; J < Cache->Head().PackageCount; J++) { + pkgCache::PkgIterator I(Cache,Cache.List[J]); + // Not interesting - if (Dep[I].Upgrade() == true || Dep[I].Upgradable() == false || - I->CurrentVer == 0 || Dep[I].Delete() == true) + if (Cache[I].Upgrade() == true || Cache[I].Upgradable() == false || + I->CurrentVer == 0 || Cache[I].Delete() == true) continue; List += string(I.Name()) + " "; diff --git a/debian/changelog b/debian/changelog index 52dc8f2fe..40156dbc6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +apt (0.3.12.1) unstable; urgency=low + + * Fix timestamp miss in FTP. Closes: #44363 + * Fix sorting of Kept packages. Closes: #44377 + + -- Jason Gunthorpe <jgg@debian.org> Fri, 3 Sep 1999 09:04:28 -0700 + apt (0.3.12) unstable; urgency=low * Fix for typo in the dhelp index. Closes: #40377 |