Add ESD9B5.0ST5G, PESD5V0L4UW, TPD2E007DCKR, TPS22994RUKT; fix FSC-BT1058 duplicate library registration
FSC-BT1058 had ended up with two footprint/symbol libraries on disk (FSC-BT1058 and MIKILAB_FSC-BT1058) after a re-import baked the "MIKILAB_" nickname prefix into the component name itself. Since that prefix is normally added automatically when sym-lib-table/fp-lib-table are generated, the double-prefixed copy (MIKILAB_MIKILAB_FSC_BT1058) was invisible to collision checks and left the original as a stale, outdated duplicate. Consolidated onto the single correct library (symbols/other and footprints/other without the redundant prefix, matching the rest of the library's naming convention), fixed the symbol's Footprint property and the footprint's 3D model reference, and regenerated both lib-tables from disk. To stop this class of bug from recurring: - lib_common.check_component_name() rejects any --name that already starts with "MIKILAB", used by import_component.py's import_symbol/ import_footprint (and therefore also by add_component.py and the SnapEDA/UltraLibrarian importers, which call into the same core). - check_library.py now flags any on-disk symbol/footprint whose name already carries that prefix as an ERROR, independent of how it got there. - import_component.py gains --remove to cleanly delete a component (symbol, footprint library, 3D model) and regenerate the lib-tables in one step, for exactly this kind of cleanup. Errors: 0 on check_library.py after the fix. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -208,6 +208,8 @@
|
||||
(lib (name "MIKILAB_Driver_LED")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Driver_LED.kicad_sym")(options "")(descr "Driver_LED"))
|
||||
(lib (name "MIKILAB_Driver_Motor")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Driver_Motor.kicad_sym")(options "")(descr "Driver_Motor"))
|
||||
(lib (name "MIKILAB_Driver_TEC")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Driver_TEC.kicad_sym")(options "")(descr "Driver_TEC"))
|
||||
(lib (name "MIKILAB_ESD9B5_0ST5G")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/ESD9B5.0ST5G.kicad_sym")(options "")(descr "ESD9B5.0ST5G"))
|
||||
(lib (name "MIKILAB_FSC_BT1058")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/FSC-BT1058.kicad_sym")(options "")(descr "FSC-BT1058"))
|
||||
(lib (name "MIKILAB_Fiber_Optic")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Fiber_Optic.kicad_sym")(options "")(descr "Fiber_Optic"))
|
||||
(lib (name "MIKILAB_GPU")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/GPU.kicad_sym")(options "")(descr "GPU"))
|
||||
(lib (name "MIKILAB_Graphic")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Graphic.kicad_sym")(options "")(descr "Graphic"))
|
||||
@@ -215,12 +217,15 @@
|
||||
(lib (name "MIKILAB_LED")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/LED.kicad_sym")(options "")(descr "LED"))
|
||||
(lib (name "MIKILAB_Motor")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Motor.kicad_sym")(options "")(descr "Motor"))
|
||||
(lib (name "MIKILAB_Oscillator")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Oscillator.kicad_sym")(options "")(descr "Oscillator"))
|
||||
(lib (name "MIKILAB_PESD5V0L4UW")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/PESD5V0L4UW.kicad_sym")(options "")(descr "PESD5V0L4UW"))
|
||||
(lib (name "MIKILAB_Potentiometer_Digital")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Potentiometer_Digital.kicad_sym")(options "")(descr "Potentiometer_Digital"))
|
||||
(lib (name "MIKILAB_SJ_3506_SMT_TR")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/SJ-3506-SMT-TR.kicad_sym")(options "")(descr "SJ-3506-SMT-TR"))
|
||||
(lib (name "MIKILAB_SJ_435107RS")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/SJ-435107RS.kicad_sym")(options "")(descr "SJ-435107RS"))
|
||||
(lib (name "MIKILAB_SJ_43515TS_SMT_TR")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/SJ-43515TS-SMT-TR.kicad_sym")(options "")(descr "SJ-43515TS-SMT-TR"))
|
||||
(lib (name "MIKILAB_SN74AXC1T45DBVR")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/SN74AXC1T45DBVR.kicad_sym")(options "")(descr "SN74AXC1T45DBVR"))
|
||||
(lib (name "MIKILAB_Security")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Security.kicad_sym")(options "")(descr "Security"))
|
||||
(lib (name "MIKILAB_TPD2E007DCKR")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/TPD2E007DCKR.kicad_sym")(options "")(descr "TPD2E007DCKR"))
|
||||
(lib (name "MIKILAB_TPS22994RUKT")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/TPS22994RUKT.kicad_sym")(options "")(descr "TPS22994RUKT"))
|
||||
(lib (name "MIKILAB_TPS63020DSJT")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/TPS63020DSJT.kicad_sym")(options "")(descr "TPS63020DSJT"))
|
||||
(lib (name "MIKILAB_Transformer")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Transformer.kicad_sym")(options "")(descr "Transformer"))
|
||||
(lib (name "MIKILAB_Triac_Thyristor")(type "KiCad")(uri "${KIPRJMOD}/symbols/other/Triac_Thyristor.kicad_sym")(options "")(descr "Triac_Thyristor"))
|
||||
|
||||
Reference in New Issue
Block a user