First off, before the change to core-functions.sh I was not having any issues running slackpkg with slackpkg+. I am excluding "gpg: WARNING: no command supplied. Trying to guess what you mean ..." as I don't consider this a problem and can safely be ignored.
How I upgraded with the gnupg, gnupg2 change. (The comma matches exact package name.)
Code:
CHECKGPG=off slackpkg upgrade gnupg, gnupg2,
slackpkg upgrade-all
If you don't want to see the "gpg: WARNING: no command supplied. Trying to guess what you mean ..." then add this patch.
Code:
# Add --quiet option to gpg.
--- /usr/libexec/slackpkg/functions.d/slackpkgplus.sh.orig 2022-09-07 15:41:39.000000000 +0800
+++ /usr/libexec/slackpkg/functions.d/slackpkgplus.sh.new 2024-03-12 12:23:25.314641954 +0800
@@ -1095,8 +1095,8 @@
if [ $(basename $1) = "GPG-KEY" ];then
mkdir -p ${WORKDIR}/gpg
rm -f ${WORKDIR}/gpg/* 2>/dev/null
- gpg $2
- if gpg $2|grep -q "$SLACKKEY" || [ "$STRICTGPG" == "off" ];then
+ gpg --quiet $2
+ if gpg --quite $2|grep -q "$SLACKKEY" || [ "$STRICTGPG" == "off" ];then
for PREPO in $(echo ${PRIORITY[*]}|sed 's/SLACKPKGPLUS_[^ ]*//g');do
gpg --output "${WORKDIR}/gpg/GPG-KEY-${PREPO}.gpg" --dearmor $2
done
@@ -1109,7 +1109,7 @@
echo
sleep 5
echo "Fatal: Slackware repository does not contains the official gpg-key!!" >>$TMPDIR/error.log
- gpg $2 >>$TMPDIR/error.log 2>&1
+ gpg --quite $2 >>$TMPDIR/error.log 2>&1
fi
for PREPO in ${REPOPLUS[*]};do
if [ "${PREPO:0:4}" = "dir:" ];then
@@ -1132,7 +1132,7 @@
$DOWNLOADER $2-tmp-$PREPO ${MIRRORPLUS[${PREPO/SLACKPKGPLUS_}]}GPG-KEY
fi
if [ $? -eq 0 ];then
- gpg $2-tmp-$PREPO
+ gpg --quite $2-tmp-$PREPO
gpg --import $2-tmp-$PREPO
gpg --output "${WORKDIR}/gpg/GPG-KEY-${PREPO}.gpg" --dearmor $2-tmp-$PREPO
else
I personally think changing gpg to gpg2 in core-functions.sh was not necessary, that said it doesn't hurt, unless gpg1 some day goes away and gpg2 becomes gpg.