openmamba-dist-upgrade: detect current libqt5 version in repository to replace temporary hardcoded version
This commit is contained in:
parent
f76fdc7323
commit
5b5b0a9095
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user