summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:47 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:47 +0000
commitbe5dbaf215aa054bdc8a5cab67e5ce429215b7aa (patch)
treedeb43fb29d9f5621b0bf37538974c616332dd8a2 /cmdline
parentfb473b5ac9fb661004c5d25c276da74d05d08563 (diff)
Fixed small virtual package install list glitch
Author: jgg Date: 1999-02-07 08:40:34 GMT Fixed small virtual package install list glitch
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 1225ece96..e99c832c4 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.38 1999/02/01 08:11:57 jgg Exp $
+// $Id: apt-get.cc,v 1.39 1999/02/07 08:40:34 jgg Exp $
/* ######################################################################
apt-get - Cover for dpkg
@@ -773,11 +773,13 @@ bool DoInstall(CommandLine &CmdL)
pkgCache::PkgIterator Pkg = I.OwnerPkg();
if ((*Cache)[Pkg].CandidateVerIter(*Cache) == I.OwnerVer())
- c1out << " " << Pkg.Name() << " " << I.OwnerVer().VerStr() << endl;
-
- if ((*Cache)[Pkg].InstVerIter(*Cache) == I.OwnerVer())
- c1out << " " << Pkg.Name() << " " << I.OwnerVer().VerStr() <<
- " [Installed]"<< endl;
+ {
+ if ((*Cache)[Pkg].Install() == true && (*Cache)[Pkg].NewInstall() == false)
+ c1out << " " << Pkg.Name() << " " << I.OwnerVer().VerStr() <<
+ " [Installed]"<< endl;
+ else
+ c1out << " " << Pkg.Name() << " " << I.OwnerVer().VerStr() << endl;
+ }
}
c1out << "You should explicly select one to install." << endl;
}