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}