add zypper support

This commit is contained in:
James Willcox 2009-03-25 13:59:02 -05:00
commit 660f949514

View file

@ -93,6 +93,13 @@ if [ -x /usr/bin/apt-get ]; then
print_updates $u
fi
# If zypper exists, use it
if [ -x /usr/bin/zypper ]; then
u=`/usr/bin/zypper --no-refresh lu --best-effort | grep 'v |' | wc -l`
echo "$u" > $mycache
print_updates $u
fi
# If yum exists, use it
if [ -x /usr/bin/yum ]; then
u=`/usr/bin/yum list updates | grep -c "updates"`