dom0-updates: ignore "Obsoleting" word in package list
Apparently -q option do not disable all the headers.
This commit is contained in:
parent
6e599567e0
commit
4e98a28017
@ -8,6 +8,8 @@ CLEAN=0
|
||||
CHECK_ONLY=0
|
||||
OPTS="--installroot $DOM0_UPDATES_DIR --config=$DOM0_UPDATES_DIR/etc/yum.conf"
|
||||
PKGLIST=
|
||||
export LC_ALL=C
|
||||
|
||||
while [ -n "$1" ]; do
|
||||
case "$1" in
|
||||
--doit)
|
||||
@ -54,7 +56,7 @@ fi
|
||||
|
||||
if [ "x$PKGLIST" = "x" ]; then
|
||||
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 ' ' | grep -v "^Obsoleting"`
|
||||
else
|
||||
PKGS_FROM_CMDLINE=1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user