summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-10-26 08:38:16 +0000
committerZac Medico <zmedico@gentoo.org>2007-10-26 08:38:16 +0000
commit806ec9287a1547da737355df79fbe63b2b6cff00 (patch)
treeb76a3dbd1e02e59d6c98cb989fd5964d14f44d5d /bin/repoman
parenta2c83b84058aa9aa59be6cee2449e81c70ae02fe (diff)
downloadportage-806ec9287a1547da737355df79fbe63b2b6cff00.tar.gz
portage-806ec9287a1547da737355df79fbe63b2b6cff00.tar.bz2
portage-806ec9287a1547da737355df79fbe63b2b6cff00.zip
Optimize repoman visibility checks to access as little
metadata as possible. (improves performance especially in cases where metadata needs to be generated). This works by starting at the lowest version since that's most likely to have keywords and it returns as soon as the first visible package is found. svn path=/main/trunk/; revision=8309
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman
index 884931220..a57c30052 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -1455,10 +1455,10 @@ for x in scanlist:
continue
#we are testing deps for a masked package; give it some lee-way
suffix="masked"
- matchmode="match-all"
+ matchmode = "minimum-all"
else:
suffix=""
- matchmode="match-visible"
+ matchmode = "minimum-visible"
if prof[1] == "dev":
suffix=suffix+"indev"