From d9daf4c1d0abf0d93702e56028e8f746b0f475bc Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 28 Mar 2019 17:42:05 +0100 Subject: seeed-download-opl o Change to download one OPL at the time. Enables Ninja to run the downloads concurrently. init/ninja: o Learning about seeed-download-opl. --- src/ee/part/create_distributor_search_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ee/part') diff --git a/src/ee/part/create_distributor_search_list.py b/src/ee/part/create_distributor_search_list.py index be362a8..fef1690 100644 --- a/src/ee/part/create_distributor_search_list.py +++ b/src/ee/part/create_distributor_search_list.py @@ -17,8 +17,8 @@ def create_distributor_search_list(in_path: Path, out_path: Path): pn_value = next((p.valueProp for p in part.get_mpns()), None) if pn_value is None: - # TODO: use schematic reference if found - print("Skipping part with no part number: uri={}".format(xml.uriProp)) + refs = [ref.referenceProp for ref in part.get_schematic_references()] + print("Skipping part with no part number: schematic reference: {}".format(", ".join(refs))) continue entry = out_parts.find_by_pn(pn_value) -- cgit v1.2.3