Make difference in switching from current >15.0 or from <15.0 to 15.0

This commit is contained in:
Matteo Rossini 2022-02-10 18:02:11 +01:00
parent 64138241c3
commit 8cba5ce103

View file

@ -2061,7 +2061,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
fi fi
if [ -e ${WORKDIR}/current ]&&[ "$MIRROR_VERSION" != "current" ];then if [ -e ${WORKDIR}/current ]&&[ "$MIRROR_VERSION" != "current" ];then
echo "WARNING: ${WORKDIR}/current does exists and you have echo "WARNING: ${WORKDIR}/current does exists and you have
not selected slackware current repository. not selected slackware current repository.
This may be you have an older version o slackpkg. This may be you have an older version o slackpkg.
@ -2081,7 +2081,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
fi fi
fi fi
if [ "${SLACKWARE_VERSION:0:2}" == "14" ]&&[ "$MIRROR_VERSION" == "15.0" ];then if [ "${SLACKWARE_VERSION:0:2}" == "14" ]&&[ "$MIRROR_VERSION" == "15.0" ];then
echo "WARNING: You have selected a mirror for Slackware 15.0 and you are running echo "WARNING: You have selected a mirror for Slackware 15.0 and you are running
slackware $SLACKWARE_VERSION; if you are upgrading slackware be slackware $SLACKWARE_VERSION; if you are upgrading slackware be
sure to run following steps: sure to run following steps:
# slackpkg update # slackpkg update
@ -2093,7 +2093,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
echo echo
sleep 5 sleep 5
elif [ "${MIRROR_VERSION:0:2}" == "14" ];then elif [ "${MIRROR_VERSION:0:2}" == "14" ];then
echo "FATAL: You have selected a mirror for Slackware $MIRROR_VERSION! echo "FATAL: You have selected a mirror for Slackware $MIRROR_VERSION!
If this is an error please correct your slackpkg configuration. If this is an error please correct your slackpkg configuration.
If you really wants to install Slackware $MIRROR_VERSION be sure If you really wants to install Slackware $MIRROR_VERSION be sure
to downgrade slackpkg+ to 1.7.0 since $SPKGPLUS_VERSION does not to downgrade slackpkg+ to 1.7.0 since $SPKGPLUS_VERSION does not
@ -2102,19 +2102,25 @@ if [ "$SLACKPKGPLUS" = "on" ];then
EXIT_CODE=1 EXIT_CODE=1
cleanup cleanup
elif [ ! -e ${WORKDIR}/current ]&&[ -e ${WORKDIR}/currentplus ];then elif [ ! -e ${WORKDIR}/current ]&&[ -e ${WORKDIR}/currentplus ];then
echo "WARNING: You have changed the mirror from Slackware current to $MIRROR_VERSION; if [ "$SLACKWARE_VERSION" == "15.0+" ];then
echo "WARNING: You have changed the mirror from Slackware current to $MIRROR_VERSION;
You are running Slackware $SLACKWARE_VERSION; this means a system DOWNGRADE!
Be careful! If that's not what you want please check and fix your configuration!
"|tee -a $TMPDIR/error.log
sleep 5
else
echo "INFO: You have changed the mirror from Slackware current to $MIRROR_VERSION;
You are running Slackware $SLACKWARE_VERSION; if you are upgrading slackware be You are running Slackware $SLACKWARE_VERSION; if you are upgrading slackware be
sure to run following steps: sure to run following steps:
# slackpkg update # slackpkg update
# slackpkg install-new$MULTILIB_ACTION # slackpkg install-new$MULTILIB_ACTION
# slackpkg upgrade-all # slackpkg upgrade-all
# slackpkg clean-system # slackpkg clean-system"|tee -a $TMPDIR/info.log
fi
If this is an error please fix the configuration."|tee -a $TMPDIR/info.log
echo echo
sleep 5
elif [ -e ${WORKDIR}/current ]&&[ ! -e ${WORKDIR}/currentplus ];then elif [ -e ${WORKDIR}/current ]&&[ ! -e ${WORKDIR}/currentplus ];then
echo "INFO: You have changed the mirror to Slackware current; echo "INFO: You have changed the mirror to Slackware current;
You are running Slackware $SLACKWARE_VERSION; if you are upgrading slackware be You are running Slackware $SLACKWARE_VERSION; if you are upgrading slackware be
sure to run following steps: sure to run following steps:
# slackpkg update # slackpkg update