mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-25 09:58:47 +01:00
Advice that /usr/bin/vi link was removed.
Upgrading from 14.2 to 15 some packages (elvis, vim, nvi) may remove the symlink /usr/bin/vi, but only the nvi package automatically recreate it. The slackware 15.0 installer uses /var/lib/pkgtools/setup/setup.vi-ex to allow user to choose which editor to use.
This commit is contained in:
parent
e0c02bc45d
commit
09ffe85668
1 changed files with 15 additions and 0 deletions
|
@ -173,6 +173,16 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
local retval=${EXIT_CODE:-0}
|
||||
[ ! -z "$PENDING_UPDATES" ]&&retval=$PENDING_UPDATES
|
||||
|
||||
if ! ls -L /usr/bin/vi >/dev/null 2>&1 && [ ! -z "$LINKVI" ];then
|
||||
echo "
|
||||
An update has removed or damaged your VI symbolic link so you may be not
|
||||
able to use VI (vim, elvis, nvi,...)
|
||||
You need to manually run '/var/lib/pkgtools/setup/setup.vi-ex' to choose
|
||||
your default VI editor or create the link yourself.
|
||||
This may happen when you upgrade from slackware 14.2 to slackware 15.0
|
||||
" >> $TMPDIR/info.log
|
||||
fi
|
||||
|
||||
if [ "$CMD" == "info" ];then
|
||||
DETAILED_INFO=${DETAILED_INFO:-none}
|
||||
[[ "$DETAILED_INFO" != "none" ]]&&more_info
|
||||
|
@ -1969,6 +1979,8 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
|
||||
fi
|
||||
|
||||
LINKVI=$(ls -L /usr/bin/vi 2>/dev/null)
|
||||
|
||||
if [ ! -e "$WORKDIR" ];then
|
||||
mkdir -p "$WORKDIR"
|
||||
fi
|
||||
|
@ -1992,6 +2004,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
|
||||
This message will disappear when the upgrade will finish"|tee -a $TMPDIR/info.log
|
||||
echo
|
||||
sleep 5
|
||||
elif [ "${MIRROR_VERSION:0:2}" == "14" ];then
|
||||
echo "FATAL: You have selected a mirror for Slackware $MIRROR_VERSION!
|
||||
If this is an error please correct your slackpkg configuration.
|
||||
|
@ -2012,6 +2025,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
|
||||
If this is an error please fix the configuration."|tee -a $TMPDIR/info.log
|
||||
echo
|
||||
sleep 5
|
||||
elif [ -e ${WORKDIR}/current ]&&[ ! -e ${WORKDIR}/currentplus ];then
|
||||
echo "INFO: You have changed the mirror to Slackware current;
|
||||
You are running Slackware $SLACKWARE_VERSION; if you are upgrading slackware be
|
||||
|
@ -2021,6 +2035,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
# slackpkg upgrade
|
||||
# slackpkg clean-system"|tee -a $TMPDIR/info.log
|
||||
echo
|
||||
sleep 5
|
||||
fi
|
||||
[ ! -e ${WORKDIR}/current ] && rm -f ${WORKDIR}/currentplus 2>/dev/null ||touch ${WORKDIR}/currentplus 2>/dev/null
|
||||
|
||||
|
|
Loading…
Reference in a new issue