openmamba-netsrpms: fixed check for packages already up-to-date when used with -u option

This commit is contained in:
silvan 2011-04-27 00:36:10 +02:00
parent c1e003b953
commit 40bdfe0498

View File

@ -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}