openmamba-dist-upgrade: detect current libqt5 version in repository to replace temporary hardcoded version

This commit is contained in:
Silvan Calarco 2017-02-19 17:24:44 +01:00
parent f76fdc7323
commit 5b5b0a9095

View File

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