summaryrefslogtreecommitdiff
path: root/portato/backend
diff options
context:
space:
mode:
authorNecoro <>2007-10-04 22:25:18 +0000
committerNecoro <>2007-10-04 22:25:18 +0000
commit00957504111a029bb8950483c0b7a82e6c73166d (patch)
treeebdee798b0881a7589bc86894d5c3ab797db53c9 /portato/backend
parent0541f1abd3f4317e0272934367fe2d84df246cd9 (diff)
downloadportato-00957504111a029bb8950483c0b7a82e6c73166d.tar.gz
portato-00957504111a029bb8950483c0b7a82e6c73166d.tar.bz2
portato-00957504111a029bb8950483c0b7a82e6c73166d.zip
small fixes
Diffstat (limited to '')
-rw-r--r--portato/backend/portage/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/portato/backend/portage/package.py b/portato/backend/portage/package.py
index 38dcb4b..e5e5603 100644
--- a/portato/backend/portage/package.py
+++ b/portato/backend/portage/package.py
@@ -19,7 +19,6 @@ from ..exceptions import BlockedException, PackageNotFoundException
from ...helper import debug, unique_array
import portage, portage_dep
-from portage_util import unique_array
import os.path
from gettext import lgettext as _
@@ -216,15 +215,16 @@ class PortagePackage (Package):
raise PackageNotFoundException, dep
list = system.sort_package_list(list)
+ list.reverse()
done = False
- for i in range(len(list)-1,0,-1):
+ for i in range(len(list)):
p = list[i]
if not p.is_masked():
dep_pkgs.append(create_dep_pkgs_data(dep, p))
done = True
break
if not done:
- dep_pkgs.append(create_dep_pkgs_data(dep, list[-1]))
+ dep_pkgs.append(create_dep_pkgs_data(dep, list[0]))
else:
dep_pkgs.append(create_dep_pkgs_data(dep, pkg))