aboutsummaryrefslogtreecommitdiff
path: root/src/ee/part
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-28 17:42:05 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-28 17:42:05 +0100
commitd9daf4c1d0abf0d93702e56028e8f746b0f475bc (patch)
treed0314f9eaf59059d7acc28d1dd3aa4e91540ad2c /src/ee/part
parentfa85d46af0b91477cf354947df628af0dc0d2800 (diff)
downloadee-python-d9daf4c1d0abf0d93702e56028e8f746b0f475bc.tar.gz
ee-python-d9daf4c1d0abf0d93702e56028e8f746b0f475bc.tar.bz2
ee-python-d9daf4c1d0abf0d93702e56028e8f746b0f475bc.tar.xz
ee-python-d9daf4c1d0abf0d93702e56028e8f746b0f475bc.zip
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.
Diffstat (limited to 'src/ee/part')
-rw-r--r--src/ee/part/create_distributor_search_list.py4
1 files changed, 2 insertions, 2 deletions
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)