Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-managers/qubes-post-update.actions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# notify dom0 if all updates are installed now
post_transaction:::enabled=host-only:/usr/lib/qubes/upgrades-status-notify
post_transaction:::enabled=host-only:/usr/lib/qubes/upgrades-status-notify skip-refresh
# refresh appmenus, features etc
post_transaction:::enabled=host-only:/etc/qubes-rpc/qubes.PostInstall
9 changes: 8 additions & 1 deletion package-managers/upgrades-installed-check
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,15 @@ if [ -e /etc/system-release ]; then
else
yum=yum
fi
dnf_opts=()
if $skip_refresh; then
dnf_opts+=(--cacheonly)
if dnf --help|grep -q skip-file-locks; then
dnf_opts+=(--skip-file-locks)
fi
fi
# shellcheck disable=SC2034
yum_output="$($yum -yq check-update)"
yum_output="$($yum -yq "${dnf_opts[@]}" check-update)"
exit_code="$?"
[ "$exit_code" -eq 100 ] && echo "false" && exit 0
[ "$exit_code" -eq 0 ] && echo "true"
Expand Down