openmamba-netsrpms: fixed check for packages already up-to-date when used with -u option
This commit is contained in:
parent
c1e003b953
commit
40bdfe0498
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user