dom0-updates: display GUI notification about no updates

If no updates are available, display some notification about that (when
GUI mode requested). Otherwise user has no idea what happened (update
failed? still doing something?).

Fixes QubesOS/qubes-issues#3751
This commit is contained in:
Marek Marczykowski-Górecki 2018-04-21 02:58:30 +02:00
parent ee878fa40a
commit 03959b670c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -229,4 +229,7 @@ elif [ -f /var/lib/qubes/updates/repodata/repomd.xml ]; then
else
rm -f $UPDATES_STAT_FILE
echo "No updates available" >&2
if [ "$GUI" == "1" ]; then
zenity --title='Dom0 updates' --text='No updates available'
fi
fi