- dialog did no more trap develop errors

- givepriority did drop matched package if it is the first in pkglist
This commit is contained in:
Matteo Rossini 2016-06-04 12:35:44 +02:00
parent 258bd4b50d
commit 2dfe8d4477
2 changed files with 14 additions and 10 deletions

View file

@ -1,4 +1,4 @@
Version 1.7.0rc2 - 22/May/2016
Version 1.7.0rc2 - 02/Jun/2016
- ChangeLog did not skipped for dir:/ repositories
- ChangeLog did not show correctly certain slackware changelog
- dir:/ repositories does not need STRICTGPG nor GPG key; however remember

View file

@ -884,8 +884,10 @@ if [ "$SLACKPKGPLUS" = "on" ];then
if [ ! -z "$PKGINFOS" ] ; then
LINEIDX=${PKGINFOS/:*/}
PKGDATA=( ${PKGINFOS/*:/} )
if [ ${PRIORITYIDX} -ne ${LINEIDX} ];then
mv ${TMPDIR}/pkglist ${TMPDIR}/pkglist.old
sed --expression "${LINEIDX}d" --expression "${PRIORITYIDX}i${PKGDATA[*]}" ${TMPDIR}/pkglist.old > ${TMPDIR}/pkglist
fi
(( PRIORITYIDX++ ))
if [ "$PKGDATA" ]; then
NAME=${PKGDATA[1]}
@ -976,8 +978,10 @@ if [ "$SLACKPKGPLUS" = "on" ];then
# R1:P is before R2:P in pkglist, and the user issue install|upgrade R2:P, slackpkg
# will install R1:P instead.
#
if [ ${PRIORITYIDX} -ne ${LINEIDX} ];then
mv ${TMPDIR}/pkglist ${TMPDIR}/pkglist.old
sed --expression "${LINEIDX}d" --expression "${PRIORITYIDX}i${PKGDATA[*]}" ${TMPDIR}/pkglist.old > ${TMPDIR}/pkglist
fi
(( PRIORITYIDX++ ))
fi
done
@ -1438,15 +1442,15 @@ if [ "$SLACKPKGPLUS" = "on" ];then
fi
;;
-1)
-1|124|125|126|127)
EXIT=true
dialog --clear
echo -e "DIALOG ERROR:\n-------------" >> $TMPDIR/error.log
cat $TMPDIR/dialog.out >> $TMPDIR/error.log
echo "-------------"
echo "If you want to continue using slackpkg, disable the DIALOG option in"
echo "$CONF/slackpkg.conf and try again."
echo "Help us to make slackpkg a better tool - report bugs to the slackpkg"
echo "-------------" >> $TMPDIR/error.log
echo "If you want to continue using slackpkg, disable the DIALOG option in" >> $TMPDIR/error.log
echo "$CONF/slackpkg.conf and try again." >> $TMPDIR/error.log
echo "Help us to make slackpkg a better tool - report bugs to the slackpkg" >> $TMPDIR/error.log
echo "developers" >> $TMPDIR/error.log
cleanup
;;