netlist: Fix namespaces for subsheet packages
commit8cde52c4ebac8088da6281d051b3ca8bac66cdb9
authorRoland Lutz <rlutz@hedmen.org>
Fri, 2 Jul 2021 12:47:30 +0000 (2 14:47 +0200)
committerRoland Lutz <rlutz@hedmen.org>
Fri, 2 Jul 2021 13:06:37 +0000 (2 15:06 +0200)
tree6fd7d5926e5a04bb6fb0d6be68b8e6006f6b4644
parent3b7ac3f439415345f6da24395c0e2c8720c710f6
netlist: Fix namespaces for subsheet packages

Commit 9f35462 fixed packages and nets split across multiple pages of
a subschematic that are listed in the same component, but it missed
the case of source= attributes being distributed between components.

Change namespace handling once again so the list of refdes' that leads
to a subschematic forms its namespace.

Reported-by: Karl Hammar <karl@aspodata.se>
15 files changed:
src/backend/util_repackage.py
src/command/netlist.py
src/gaf/netlist/instance.py
src/gaf/netlist/net.py
src/gaf/netlist/netlist.py
src/gaf/netlist/package.py
tests/netlist/Makefile.am
tests/netlist/regression/gschemrc
tests/netlist/regression/multiple_sources_pkg-geda.out [new file with mode: 0644]
tests/netlist/regression/multiple_sources_pkg-sources/sub-0.sch [new file with mode: 0644]
tests/netlist/regression/multiple_sources_pkg-sources/sub-1.sch [new file with mode: 0644]
tests/netlist/regression/multiple_sources_pkg-symbols/io.sym [new file with mode: 0644]
tests/netlist/regression/multiple_sources_pkg-symbols/sub.sym [new file with mode: 0644]
tests/netlist/regression/multiple_sources_pkg-symbols/sym.sym [new file with mode: 0644]
tests/netlist/regression/multiple_sources_pkg.sch [new file with mode: 0644]