// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-get.cc,v 1.1 1998/10/02 04:39:56 jgg Exp $
+// $Id: apt-get.cc,v 1.2 1998/10/08 04:55:05 jgg Exp $
/* ######################################################################
apt-get - Cover for dpkg
// Show a quick summary of the version requirements
if (D.TargetVer() != 0)
out << " (" << D.CompType() << " " << D.TargetVer() <<
- ")" << endl;
- else
- out << endl;
+ ")";
+
+ /* Show a summary of the target package if possible. In the case
+ of virtual packages we show nothing */
+ pkgCache::PkgIterator Targ = D.TargetPkg();
+ if (Targ->ProvidesList == 0)
+ {
+ out << " but ";
+ pkgCache::VerIterator Ver = Cache[Targ].InstVerIter(Cache);
+ if (Ver.end() == false)
+ out << Ver.VerStr() << "is installed";
+ else
+ out << "it is not installed";
+ }
+
+ out << endl;
}
}
}
return _error->Error("Unable to correct dependencies");
}
+ if (pkgMinimizeUpgrade(*Cache) == false)
+ return _error->Error("Unable to minimize the upgrade set");
c1out << " Done" << endl;
}