vm/qvm-dom0-update: output diagnostics to stderr

To not confuse qubes-watch-updates...
This commit is contained in:
Marek Marczykowski 2011-09-15 00:19:48 +02:00
parent bdf407b716
commit ebdc8dd80a

View File

@ -33,7 +33,7 @@ while [ -n "$1" ]; do
done done
if ! [ -d "$DOM0_UPDATES_DIR" ]; then if ! [ -d "$DOM0_UPDATES_DIR" ]; then
echo "Dom0 updates dir does not exists: $DOM0_UPDATES_DIR" echo "Dom0 updates dir does not exists: $DOM0_UPDATES_DIR" >&2
exit 1 exit 1
fi fi
@ -46,7 +46,7 @@ if [ "$CLEAN" = "1" ]; then
fi fi
if [ "x$PKGLIST" = "x" ]; then if [ "x$PKGLIST" = "x" ]; then
echo "Checking for dom0 updates..." echo "Checking for dom0 updates..." >&2
PKGLIST=`yum $OPTS check-update -q | cut -f 1 -d ' '` PKGLIST=`yum $OPTS check-update -q | cut -f 1 -d ' '`
else else
PKGS_FROM_CMDLINE=1 PKGS_FROM_CMDLINE=1