dom0-updates: remove "updates pending" flag also when no actual updates were found

This allows to clear the flag when for some reason it wasn't cleared
immediately after installing updates.

Fixes QubesOS/qubes-issues#1511
This commit is contained in:
Marek Marczykowski-Górecki 2015-12-13 02:11:56 +01:00
parent cb6a52a652
commit 6921400a7a
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -169,5 +169,6 @@ elif [ -f /var/lib/qubes/updates/repodata/repomd.xml ]; then
fi
yum -q check-update && rm -f $UPDATES_STAT_FILE
else
yum -q check-update && rm -f $UPDATES_STAT_FILE
echo "No updates avaliable" >&2
fi