From 40bdfe0498eb43659594f2453d5ab9c0d790c5eb Mon Sep 17 00:00:00 2001 From: silvan Date: Wed, 27 Apr 2011 00:36:10 +0200 Subject: [PATCH] openmamba-netsrpms: fixed check for packages already up-to-date when used with -u option --- openmamba-update/openmamba-netsrpms | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openmamba-update/openmamba-netsrpms b/openmamba-update/openmamba-netsrpms index 752c098..a2a09e9 100755 --- a/openmamba-update/openmamba-netsrpms +++ b/openmamba-update/openmamba-netsrpms @@ -70,13 +70,15 @@ for pckname in $PACKAGES; do echo "Last version: $SRPM_VERSION" echo - [ "$RPM_INSTALLED_VERSION" != "$SRPM_VERSION" ] && { + if [ "$RPM_INSTALLED_VERSION" != "$SRPM_VERSION" ]; then if [ "$RPM_INSTALLED_VERSION" ]; then UPDATE_NEEDED=1 elif [ "$UPGRADE_MODE" ]; then continue fi - } + elif [ "$UPGRADE_MODE" ]; then + continue + fi if [ ! "$CHECK_MODE" ]; then SRPM_PATH=${DISTRO_SRPMS_DIR}/${SRPM_NAME}