fix issues with paren_license_choose

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1177 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-02-09 00:11:54 +00:00
parent e7c523ef1e
commit beb068bef0
+6 -5
View File
@@ -458,17 +458,18 @@ def dep_or_select(or_list):
def paren_license_choose(dep_list):
newlist = []
newlist = set()
for item in dep_list:
if isinstance(item, list):
# match the first
for x in item:
newlist.append(x)
data = set(paren_license_choose(item))
newlist.update(data)
else:
if item not in ["||"]:
newlist.append(item)
return newlist
newlist.add(item)
return list(newlist)
##
## HIGHLY DEPRECATED, USE calculate_dependencies