Fixed slackpkg info on sbo packages

This commit is contained in:
Matteo Rossini 2022-01-16 00:07:53 +01:00
parent 694dae030b
commit b17888c436

View file

@ -1545,6 +1545,17 @@ if [ "$SLACKPKGPLUS" = "on" ];then
cat $WORKDIR/pkglist|grep -E "^[^ ]* $NAME "|while read repository name version arch tag namepkg fullpath ext;do
echo "Package: $namepkg"
echo "Repository: ${repository/SLACKPKGPLUS_/}"
if echo $repository|grep -q SBO_;then
fullpath=${fullpath/*$repository\//}
if [ "$repository" == "SBO_current" ];then
fullpath="plain/$fullpath/"
else
fullpath="$fullpath/"
fi
URLFILE=${SBO[${repository/SBO_}]%/}/$fullpath
echo "Path: ${fullpath}"
echo "Url: ${URLFILE}"
else
echo "Path: ${fullpath/\/SLACKPKGPLUS_${repository/SLACKPKGPLUS_/}/}/$namepkg.$ext"
URLFILE=${SOURCE}${fullpath}/${namepkg}.${ext}
if echo $URLFILE|grep -q /SLACKPKGPLUS_;then
@ -1561,6 +1572,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
echo "$FILELIST"|sed "s/ /\n/g"|tail +2|sed 's/^/ /'
fi
fi
fi
echo
done
} # END function more_info()