Debian Patches

Status for kicad-library-utils/0.0~git20260724.8a0f223-1

Patch Description Author Forwarded Bugs Origin Last update
kicad_sym-accept-a-string-filename-in-KicadLibrary.patch kicad_sym: accept a string filename in KicadLibrary
KicadLibrary.write() dispatches on the library format by inspecting
self.filename.suffix, but the constructor never coerced its argument to
a Path. Every symbol generator builds the library name by string
concatenation and passes a plain str, so writing a library aborts with:

AttributeError: 'str' object has no attribute 'suffix'

This affects from_csv_generator.py (exercised by the test-symgen target,
which breaks the build), example-generator.py, R_Network.py, SW_DIP.py,
Connector_generator.py and stm32_generator.py.

The regression was introduced when write() gained .kicad_symdir support
and switched from open(self.filename, ...), which accepts a str happily,
to suffix-based dispatch.

Coerce the filename to a Path in __post_init__ and widen the annotation
to str | Path, matching how from_path() and from_file() already accept
either type.
Christopher Obbard <obbardc@debian.org> invalid 2026-08-01

All known versions for source package 'kicad-library-utils'

Links