Closed RomainMou closed 6 months ago
Hi,
Since https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/pull/181/, the script apt_info.py never returns any apt_upgrades_pending. Instead, all the packages are counted in the apt_upgrades_held.
apt_info.py
apt_upgrades_pending
apt_upgrades_held
I think this is because the cache.upgrade(True) call marks the packages that could be upgraded, and without it, no package has the marked_upgrade boolean set to true.
cache.upgrade(True)
marked_upgrade
Hi,
Since https://github.com/prometheus-community/node-exporter-textfile-collector-scripts/pull/181/, the script
apt_info.py
never returns anyapt_upgrades_pending
. Instead, all the packages are counted in theapt_upgrades_held
.I think this is because the
cache.upgrade(True)
call marks the packages that could be upgraded, and without it, no package has themarked_upgrade
boolean set to true.