diff options
| author | Dennis Fink | 2026-09-27 21:37:45 +0200 |
|---|---|---|
| committer | Dennis Fink | 2026-09-27 21:37:45 +0200 |
| commit | c7403b5870aed4baaf5253d21761619d8607efb7 (patch) | |
| tree | 98da4ca9ec935431c9ca533dc395cb1451a9d37a /contrib/prometheus-pacman-exporter.timer | |
| parent | 731a25e096cf9af3c0c5b3303796df7b3e91df36 (diff) | |
| download | prometheus-pacman-exporter-c7403b5870aed4baaf5253d21761619d8607efb7.tar.gz prometheus-pacman-exporter-c7403b5870aed4baaf5253d21761619d8607efb7.zip | |
fix(commands): distinguish empty query results
Track exit codes that indicate an empty package query separately from
accepted success codes.
Treat pacman exit status 1 as an empty result only when both stdout and
stderr are empty, while preserving genuine command failures as errors.
Apply the empty-result handling to pacman queries that may legitimately
return no packages, including update checks.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
