feat: apt's errors come through, unreadable sources raise PackageSourcesUnreadable, 4.57.0 (NetOrk/netork#3087) #146

Merged
christianmanivong merged 1 commits from fix/apt-sources-unreadable into main 2026-12-03 12:06:49 +00:00
1 Commits
Author SHA1 Message Date
christianmanivong 9efc3275b1 feat: apt's errors come through, unreadable sources raise PackageSourcesUnreadable, 4.57.0 (NetOrk/netork#3087)
driver / standard (pull_request) Successful in 16s
driver / lint (pull_request) Successful in 16s
driver / lowest (pull_request) Successful in 45s
driver / types (pull_request) Successful in 1m9s
driver / test (3.12) (pull_request) Successful in 1m19s
driver / test (3.13) (pull_request) Successful in 1m19s
driver / build (pull_request) Successful in 37s
driver / security (pull_request) Successful in 1m10s
CI / driver (pull_request) Successful in 2m14s
driver / publish (pull_request) Skipped
One bad apt source line, two Signed-By for one repository, makes apt refuse
every source. The update read then failed with "exit status 100" and nothing
else, because APT_UPGRADABLE_COMMAND threw stderr away.

The command now passes apt's E: lines on, marked __APT_E:, and still keeps
its warnings out. parse_apt_upgradable raises PackageSourcesUnreadable, a
ValueError, with apt's errors when apt could not read its sources, and names
them after the exit status for any other failure.
2026-12-03 13:03:41 +01:00