diff options
author | Johannes Winkelmann <jw@smts.ch> | 2006-04-13 07:04:14 +0000 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2006-04-13 07:04:14 +0000 |
commit | 91314fa5976f8f15ee3a803387a958b3cd893322 (patch) | |
tree | 15388b42f5a85e4963c284253baf67d4b63422d6 | |
parent | f33c03a217b234fa60f613a10ec1c55d87880427 (diff) | |
download | prt-get-91314fa5976f8f15ee3a803387a958b3cd893322.tar.gz prt-get-91314fa5976f8f15ee3a803387a958b3cd893322.tar.xz |
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
-rw-r--r-- | src/installtransaction.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/installtransaction.cpp b/src/installtransaction.cpp index c1f7718..35bc9b6 100644 --- a/src/installtransaction.cpp +++ b/src/installtransaction.cpp @@ -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() + " " + |