prt-get: get rid of "updating port from n to n"

git-svn-id: https://crux.nu/svn/tools/prt-get/trunk@1246 0b5ae1c7-2405-0410-a7fc-ba219f786e1e
This commit is contained in:
Johannes Winkelmann 2006-04-13 07:04:14 +00:00
parent f33c03a217
commit 91314fa597

View File

@ -322,9 +322,15 @@ InstallTransaction::installPackage( const Package* package,
string fullCommand = commandName + ": " + cmd + " " + args;
string summary;
if (update) {
summary = commandName + ": " + "updating " + package->name() +
" from " + m_pkgDB->getPackageVersion(package->name()) +
" to " + package->version() + "-" + package->release();
string from = m_pkgDB->getPackageVersion(package->name());
string to = package->version() + "-" + package->release();
if (from == to) {
summary = commandName + ": " + "reinstalling " +
package->name() + " " + to;
} else {
summary = commandName + ": " + "updating " +
package->name() + " from " + from + " to " + to;
}
} else {
summary = commandName + ": " + "installing " +
package->name() + " " +