mirror of
https://github.com/toyota-connected/emb_cli.git
synced 2026-06-21 07:19:37 -07:00
c8b6d34c15
The arm-gnu provider resolved the -dev closure only from one-line `deb …` sources (sources.list + sources.list.d/*.list). Trixie (Debian 13) and current raspios ship their sources in deb822 format (sources.list.d/*.sources with Types/URIs/Suites/Components), so resolution failed with "no apt sources … (cannot resolve -dev)". - aptIndexUrls now parses both formats: one-line entries and deb822 stanzas (multi-value URIs/Suites/Components, trailing-slash URIs normalized, deb-src and Enabled:no skipped). - _readAptSources also reads sources.list.d/*.sources and separates files with a blank line so one-line and deb822 stanzas never merge. Fixes the publish-trixie job; publish-bookworm (one-line sources) already worked. Tests cover deb822 and mixed one-line+deb822 inputs. Signed-off-by: Joel Winarske <joel.winarske@gmail.com>