DNF_SECURITY_COMMAND now runs dnf --cacheonly updateinfo list --security. Without --cacheonly, dnf downloads the repositories' metadata whenever its cache has expired, and on an Oracle Linux host on OCI that took longer than netOrk's whole 120 s poll. Refreshing the index stays its own step (dnf makecache, which netOrk runs daily). Without a cache dnf fails at once, which the __DNF_RC marker already turns into "security unknown".
Test: a stand-in dnf records its arguments, and --cacheonly must be among them.
Merge this first: NAPALM/napalm-linux's PR for #59 installs device-types from main in CI, and its dnf test needs this change.
`DNF_SECURITY_COMMAND` now runs `dnf --cacheonly updateinfo list --security`. Without `--cacheonly`, dnf downloads the repositories' metadata whenever its cache has expired, and on an Oracle Linux host on OCI that took longer than netOrk's whole 120 s poll. Refreshing the index stays its own step (`dnf makecache`, which netOrk runs daily). Without a cache dnf fails at once, which the `__DNF_RC` marker already turns into "security unknown".
Test: a stand-in `dnf` records its arguments, and `--cacheonly` must be among them.
Merge this first: NAPALM/napalm-linux's PR for #59 installs device-types from `main` in CI, and its dnf test needs this change.
Closes #76
DNF_SECURITY_COMMAND ran `dnf updateinfo list --security`, which downloads
the repositories' metadata first whenever the cached copy has expired. On an
Oracle Linux host on OCI that took longer than netOrk's whole 120 s poll.
It now runs with --cacheonly, as APT_UPGRADABLE_COMMAND reads apt's local
index; refreshing stays `dnf makecache`. Without a cache dnf fails at once,
and the __DNF_RC marker already turns that into "security unknown".
Closes#76
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
DNF_SECURITY_COMMANDnow runsdnf --cacheonly updateinfo list --security. Without--cacheonly, dnf downloads the repositories' metadata whenever its cache has expired, and on an Oracle Linux host on OCI that took longer than netOrk's whole 120 s poll. Refreshing the index stays its own step (dnf makecache, which netOrk runs daily). Without a cache dnf fails at once, which the__DNF_RCmarker already turns into "security unknown".Test: a stand-in
dnfrecords its arguments, and--cacheonlymust be among them.Merge this first: NAPALM/napalm-linux's PR for #59 installs device-types from
mainin CI, and its dnf test needs this change.Closes #76