dom0-updates: add a message explaining yum deprecated warning

Thanks @axon-qubes for the idea.

Fixes QubesOS/qubes-issues#1574

(cherry picked from commit c4ff490844)
This commit is contained in:
Marek Marczykowski-Górecki 2016-01-04 02:10:27 +01:00
parent bafca3142d
commit e97e393ab1
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -52,6 +52,8 @@ fi
YUM="yum"
# prefer yum-deprecated over dnf, because of still missing features in dnf (at least --downloaddir)
if type dnf >/dev/null 2>&1 && type yum-deprecated >/dev/null 2>&1; then
echo "(Note: dnf will complain that the yum command has been deprecated." >&2
echo "This message is safe to ignore.)" >&2
YUM="yum-deprecated"
fi