gnetlist: fix multiple renames for same source net
commit06925a44059c630ed99aa25ebebce8146cc56e47
authorKrzysztof Kościuszkiewicz <k.kosciuszkiewicz@gmail.com>
Sun, 20 Mar 2011 00:56:49 +0000 (20 01:56 +0100)
committerKrzysztof Kościuszkiewicz <k.kosciuszkiewicz@gmail.com>
Sun, 20 Mar 2011 12:23:21 +0000 (20 13:23 +0100)
treeecbdd6c222029949cc089b65bcbccdcf81c0b8e4
parentc7e23d6238b0013830f0db4157a799c0657936cb
gnetlist: fix multiple renames for same source net

It might happen an existing rename for A->B exists when a new rename
A->C is added. This means B and C should be made equivalent.

This patch arbitrarily choses one of these nets by renaming C->B instead
of originally requested A->C.

Closes-bug: lp-698570
Closes-bug: lp-698395
gnetlist/src/s_rename.c