diff --git a/openmamba-update/openmamba-dist-upgrade b/openmamba-update/openmamba-dist-upgrade index d19b03a..293aeb5 100755 --- a/openmamba-update/openmamba-dist-upgrade +++ b/openmamba-update/openmamba-dist-upgrade @@ -42,9 +42,11 @@ SMART_FILE_ROLLING=/etc/smart/distro.d/90-openmamba-devel-repositories.py if [ "$RELEASE" == "milestone4" ]; then SMART_FILE="$SMART_FILE_MILESTONE" + REPOSITORY="milestone4" rm -f $SMART_FILE_ROLLING else SMART_FILE="$SMART_FILE_ROLLING" + REPOSITORY="devel" rm -f $SMART_FILE_MILESTONE fi @@ -446,9 +448,11 @@ fi smart install -y openmamba-install-scripts smart install -y wxWidgets-i18n -curl http://cdn.openmamba.org/pub/openmamba/milestone4/RPMS.${RPMARCH}/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm \ - -o /tmp/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm -rpm -U /tmp/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm --nodeps --force +QTVER=`curl -s http://cdn.openmamba.org/pub/openmamba/${REPOSITORY}/SRPMS.base/|grep libqt5|sed "s|.*libqt5-\(.*\)\.src.rpm.*|\1|"` + +curl http://cdn.openmamba.org/pub/openmamba/${REPOSITORY}/RPMS.${RPMARCH}/libqt5-common-${QTVER}.${RPMARCH}.rpm \ + -o /tmp/libqt5-common-${QTVER}.${RPMARCH}.rpm +rpm -U /tmp/libqt5-common-${QTVER}.${RPMARCH}.rpm --nodeps --force echo "Second upgrade stage, this may take a long time!" smart upgrade -y || exit 1