diff options
author | Johannes Winkelmann <jw@smts.ch> | 2008-06-26 18:26:21 +0200 |
---|---|---|
committer | Johannes Winkelmann <jw@smts.ch> | 2008-06-26 18:26:21 +0200 |
commit | a423bd54f11d10e48f97243ac8d6f65eca4e351b (patch) | |
tree | 1f7dc49f6a5b7522ccd25b0ca355a3883ec06234 | |
parent | 345f4e4616d7188ab2b57de0260dd94eaf32ba9b (diff) | |
download | prt-get-a423bd54f11d10e48f97243ac8d6f65eca4e351b.tar.gz prt-get-a423bd54f11d10e48f97243ac8d6f65eca4e351b.tar.xz |
show path in install summary
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/prtget.cpp | 8 |
2 files changed, 9 insertions, 0 deletions
@@ -1,6 +1,7 @@ * 5.16 26.06.2008 Johannes Winkelmann - don't loop forever when version= contains unsupported $() tokens - gcc 4.3 fixes (thanks Fredrik) +- support path in install summary * 5.15 27.09.2006 Johannes Winkelmann - fix PKGMK_PACKAGE_DIR determination diff --git a/src/prtget.cpp b/src/prtget.cpp index d1709d8..9efd947 100644 --- a/src/prtget.cpp +++ b/src/prtget.cpp @@ -1092,6 +1092,14 @@ void PrtGet::evaluateResult( InstallTransaction& transaction, bool atLeastOnePackageHasReadme = false; for ( ; iit != inst.end(); ++iit ) { + if (m_parser->printPath()) { + // TODO: avoid lookup by tuning + // InstallTransaction::installedPackages() + const Package* p = m_repo->getPackage(iit->first); + if (p) { + cout << p->path() << "/"; + } + } cout << iit->first; if ( iit->second.hasReadme ) { if ( m_config->readmeMode() == |