r1879 - crux-2.2/ports/core/prt-get
Author: jw Date: 2006-09-13 19:55:59 +0200 (Wed, 13 Sep 2006) New Revision: 1879 Removed: crux-2.2/ports/core/prt-get/prt-get-0.5.11-deptree-alias.diff Log: prt-get: remove unused patch Deleted: crux-2.2/ports/core/prt-get/prt-get-0.5.11-deptree-alias.diff =================================================================== --- crux-2.2/ports/core/prt-get/prt-get-0.5.11-deptree-alias.diff 2006-09-13 17:51:50 UTC (rev 1878) +++ crux-2.2/ports/core/prt-get/prt-get-0.5.11-deptree-alias.diff 2006-09-13 17:55:59 UTC (rev 1879) @@ -1,40 +0,0 @@ ---- 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) { -Index: pkgdb.cpp -=================================================================== ---- prt-get-0.5.11/src/pkgdb.cpp (revision 1137) -+++ prt-get-0.5.11/src/pkgdb.cpp (working copy) -@@ -68,6 +68,10 @@ - *aliasOrignalName = provider; - } - } -+ } else { -+ if (isAlias) { -+ *isAlias = false; -+ } - } - - return installed;
participants (1)
-
crux@crux.nu