svn path=/main/trunk/; revision=4482
mydepgraph.altlist(reversed=("--tree" in myopts)))
else:
if ("--buildpkgonly" in myopts):
- if not mydepgraph.digraph.hasallzeros():
+ if not mydepgraph.digraph.hasallzeros(ignore_soft_deps=True):
print "\n!!! --buildpkgonly requires all dependencies to be merged."
print "!!! Cannot merge requested packages. Merge deps and try again.\n"
sys.exit(1)
return leaf_nodes[0]
return None
- def hasallzeros(self):
- return len(self.leaf_nodes(ignore_soft_deps=True)) == len(self.order)
+ def hasallzeros(self, ignore_soft_deps=False):
+ return len(self.leaf_nodes(ignore_soft_deps=ignore_soft_deps)) == \
+ len(self.order)
def debug_print(self):
for node in self.nodes: