diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-12-13 10:50:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-12-13 10:50:03 +0000 |
commit | 5e9bf090557029d8e463aa95923f16e030c44bd1 (patch) | |
tree | e5dff51dbd04e2d69d81178ea388e2c538138acd | |
parent | cfea417d0b0e53b7490da2055078e70933853044 (diff) | |
download | portage-5e9bf090557029d8e463aa95923f16e030c44bd1.tar.gz portage-5e9bf090557029d8e463aa95923f16e030c44bd1.tar.bz2 portage-5e9bf090557029d8e463aa95923f16e030c44bd1.zip |
Remove redundant digraph.pkg_node_map node insertions. Once per digraph.create() call will cover all nodes.
svn path=/main/trunk/; revision=5283
-rwxr-xr-x | bin/emerge | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/bin/emerge b/bin/emerge index 5f5482bdd..3a4545150 100755 --- a/bin/emerge +++ b/bin/emerge @@ -867,24 +867,16 @@ class depgraph: 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(). - if jbigkey[-1] == "merge": - self.pkg_node_map[myroot][mykey] = jbigkey if rev_dep and myparent: ptype, proot, pkey, pstatus = myparent - if myparent[-1] == "merge": - self.pkg_node_map[proot][pkey] = myparent self.digraph.addnode(myparent, jbigkey, priority=priority) else: self.digraph.addnode(jbigkey, myparent, priority=priority) return 1 jbigkey = tuple(chain(mybigkey, ["nomerge"])) if self.digraph.hasnode(jbigkey): - if jbigkey[-1] == "merge": - self.pkg_node_map[myroot][mykey] = jbigkey if rev_dep and myparent: ptype, proot, pkey, pstatus = myparent - if myparent[-1] == "merge": - self.pkg_node_map[proot][pkey] = myparent self.digraph.addnode(myparent, jbigkey, priority=priority) else: self.digraph.addnode(jbigkey, myparent, priority=priority) @@ -959,12 +951,8 @@ class depgraph: depgraph already and returned, or we are here. Whether we are merging or not; we must add the package to the depgraph; so we do that here. """ jbigkey = tuple(mybigkey) - if jbigkey[-1] == "merge": - self.pkg_node_map[myroot][mykey] = jbigkey if rev_dep and myparent: ptype, proot, pkey, pstatus = myparent - if myparent[-1] == "merge": - self.pkg_node_map[proot][pkey] = myparent self.digraph.addnode(myparent, jbigkey, priority=priority) else: @@ -976,6 +964,7 @@ class depgraph: slot_atom = "%s:%s" % (portage.dep_getkey(mykey), metadata["SLOT"]) self._slot_node_map[myroot][slot_atom] = jbigkey if mybigkey[-1] == "merge": + self.pkg_node_map[myroot][mykey] = jbigkey self.mydbapi[myroot].cpv_inject(mykey, metadata=metadata) """ This section determines whether we go deeper into dependencies or not. |