summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzmedico <zmedico@gentoo.org>2009-01-07 10:46:21 +0000
committerzmedico <zmedico@gentoo.org>2009-01-07 10:46:21 +0000
commitc81210556e7f72dd3175a0acf385c9959c1b9c52 (patch)
treed4e6d8c67a86e14e582603f9db1a4dae08cd235a
parent96ee96bcdd1bbc39974e53ff3b4fa4132757970e (diff)
downloadgentoolkit-c81210556e7f72dd3175a0acf385c9959c1b9c52.tar.gz
Inside find_all_packages(), move the unique_array() call out of the loop.
This makes a big performance difference. Thanks to DJ Anderson for reporting. svn path=/; revision=536
-rw-r--r--trunk/src/gentoolkit/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/src/gentoolkit/helpers.py b/trunk/src/gentoolkit/helpers.py
index 1823f2c..4652b2d 100644
--- a/trunk/src/gentoolkit/helpers.py
+++ b/trunk/src/gentoolkit/helpers.py
@@ -130,7 +130,7 @@ def find_all_packages(prefilter=None):
for x in t:
t2 += porttree.dbapi.cp_list(x)
t2 += vartree.dbapi.cp_list(x)
- t2 = unique_array(t2)
+ t2 = unique_array(t2)
return [Package(x) for x in t2]
def split_package_name(name):