svn path=/main/trunk/; revision=4021
jbigkey = " ".join(mybigkey) + " merge"
if self.digraph.hasnode(jbigkey):
- if addme:
+ if addme and jbigkey != myparent:
+ # Refuse to make a node depend on itself so that the we don't
+ # don't create a bogus circular dependency in self.altlist().
self.digraph.addnode(jbigkey, myparent)
return 1
jbigkey = " ".join(mybigkey) + " nomerge"
self.okeys=[]
def addnode(self,mykey,myparent):
- if mykey == myparent:
- # Refuse to make a node depend on itself so that the caller doesn't
- # accidentally create a bogus circular dependency.
- myparent = None
if not self.dict.has_key(mykey):
self.okeys.append(mykey)
if myparent is None: