Released in 2.1_pre4-r1. #120803
svn path=/main/trunk/; revision=2604
return 1
elif x==1:
return 1
+ #XXX: unless there's no available atoms in the list
+ #in which case we need to assume that everything is
+ #okay as some ebuilds are relying on an old bug.
+ if len(deplist) == 1:
+ return 1
return 0
else:
for x in deplist:
if additions:
rlist.append(additions)
elif rlist and rlist[-1] == "||":
- raise portage_exception.InvalidDependString("No default atom(s) in \""+paren_enclose(deparray)+"\"")
+ #XXX: Currently some DEPEND strings have || lists without default atoms.
+ # raise portage_exception.InvalidDependString("No default atom(s) in \""+paren_enclose(deparray)+"\"")
+ rlist.append([])
else:
if head[-1] == "?": # Use reduce next group on fail.