Avoid spawning a Zenity progress meter

Newer versions of qubes-dom0-update will spawn
qubes-download-dom0-updates.sh in an xterm if GUI mode is enabled.
Therefore, we don’t need to spawn our own progress bar.
This commit is contained in:
Demi Marie Obenour 2020-12-10 17:55:09 -05:00
parent 274df33d4d
commit 6adad25f51
No known key found for this signature in database
GPG Key ID: 28A45C93B0B5B6E0

View File

@ -164,16 +164,7 @@ mkdir -p "$DOM0_UPDATES_DIR/packages"
set -e
if [ "$GUI" = 1 ]; then
( echo "1"
# shellcheck disable=SC2086
"${YUM_COMMAND[@]}" "${OPTS[@]}" "${PKGLIST[@]}"
echo 100 ) | zenity --progress --pulsate --auto-close --auto-kill \
--text="Downloading updates for Dom0, please wait..." --title="Qubes Dom0 updates"
else
# shellcheck disable=SC2086
"${YUM_COMMAND[@]}" "${OPTS[@]}" "${PKGLIST[@]}"
fi
"${YUM_COMMAND[@]}" "${OPTS[@]}" "${PKGLIST[@]}"
find "$DOM0_UPDATES_DIR/var/cache" -name '*.rpm' -print0 2>/dev/null |\
xargs -0 -r ln -f -t "$DOM0_UPDATES_DIR/packages/"