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 if [ "$RELEASE" == "milestone4" ]; then
SMART_FILE="$SMART_FILE_MILESTONE" SMART_FILE="$SMART_FILE_MILESTONE"
REPOSITORY="milestone4"
rm -f $SMART_FILE_ROLLING rm -f $SMART_FILE_ROLLING
else else
SMART_FILE="$SMART_FILE_ROLLING" SMART_FILE="$SMART_FILE_ROLLING"
REPOSITORY="devel"
rm -f $SMART_FILE_MILESTONE rm -f $SMART_FILE_MILESTONE
fi fi
@ -446,9 +448,11 @@ fi
smart install -y openmamba-install-scripts smart install -y openmamba-install-scripts
smart install -y wxWidgets-i18n smart install -y wxWidgets-i18n
curl http://cdn.openmamba.org/pub/openmamba/milestone4/RPMS.${RPMARCH}/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm \ QTVER=`curl -s http://cdn.openmamba.org/pub/openmamba/${REPOSITORY}/SRPMS.base/|grep libqt5|sed "s|.*libqt5-\(.*\)\.src.rpm.*|\1|"`
-o /tmp/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm
rpm -U /tmp/libqt5-common-5.7.0-1mamba.${RPMARCH}.rpm --nodeps --force 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!" echo "Second upgrade stage, this may take a long time!"
smart upgrade -y || exit 1 smart upgrade -y || exit 1