partslist[1-3] don't handle hierarchy refdeses correctly

Bug #698722 reported by richardbarlow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gEDA
Fix Released
Medium
Unassigned

Bug Description

I mistakenly submitted this patch to the bug tracker rather than the patch tracker a few months ago. I'm re-submitting it here so that it doesn't get lost or forgotten.

When producing a part list with the partslist[1-3] backend the refdes values output to the file do not contain the prepended refdeses of the parent component.

E.g.

Master schematic with symbol 'S1' (representing sub-schematic) and a resistor 'R1'
Sub-schematic containing resistor 'R1'

The geda backend produces a netlist containing two resistors 'R1' and 'S1/R1', they're unique and everything is fine and dandy.
The partslist[1-3] backends contain two components with the refdes 'R1' which then causes problems when processing this file further.

This is caused by the partslist[1-3] backends adding the value of the refdes attribute to the file rather than the value returned by the 'packages' function.

The supplied patch alters the backends to use the value from the packages function directly, rather than looking up the refdes attribute of the component.

Revision history for this message
richardbarlow (richardbarlow) wrote :
Peter TB Brett (peter-b)
Changed in geda:
status: Fix Released → Fix Committed
milestone: none → 1.6.2
importance: Undecided → Medium
Peter TB Brett (peter-b)
Changed in geda:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.