summaryrefslogtreecommitdiff
path: root/prt-get/prt-get-0.5.11-deptree-alias.diff
diff options
context:
space:
mode:
Diffstat (limited to 'prt-get/prt-get-0.5.11-deptree-alias.diff')
-rw-r--r--prt-get/prt-get-0.5.11-deptree-alias.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/prt-get/prt-get-0.5.11-deptree-alias.diff b/prt-get/prt-get-0.5.11-deptree-alias.diff
new file mode 100644
index 00000000..4b6f09c1
--- /dev/null
+++ b/prt-get/prt-get-0.5.11-deptree-alias.diff
@@ -0,0 +1,25 @@
+--- prt-get-0.5.11/src/prtget.cpp 2005-06-01 22:33:43.000000000 +0200
++++ prt-get-0.5.11.new/src/prtget.cpp 2006-03-15 10:07:38.000000000 +0100
+@@ -1786,8 +1785,11 @@
+ list<string> deps;
+ StringHelper::split(package->dependencies(), ',', deps);
+ list<string>::iterator it = deps.begin();
++ bool isAlias = false;
++ string aliasName = "";
++
+ for (; it != deps.end(); ++it) {
+- if ( m_pkgDB->isInstalled( *it ) ) {
++ if ( m_pkgDB->isInstalled( *it, true, &isAlias, &aliasName ) ) {
+ cout << "[i] ";
+ } else {
+ cout << "[ ] ";
+@@ -1796,6 +1798,9 @@
+ cout << " ";
+ }
+ cout << *it;
++ if (isAlias) {
++ cout << " (provided by " << aliasName << ")";
++ }
+ const Package* p = m_repo->getPackage( *it );
+ if (p) {
+ if (p->dependencies().length() > 0) {

Generated by cgit