mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-26 09:58:43 +01:00
Fixed slackpkg info on sbo packages
This commit is contained in:
parent
694dae030b
commit
b17888c436
1 changed files with 25 additions and 13 deletions
|
@ -1545,20 +1545,32 @@ 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_/}"
|
||||
echo "Path: ${fullpath/\/SLACKPKGPLUS_${repository/SLACKPKGPLUS_/}/}/$namepkg.$ext"
|
||||
URLFILE=${SOURCE}${fullpath}/${namepkg}.${ext}
|
||||
if echo $URLFILE|grep -q /SLACKPKGPLUS_;then
|
||||
PREPO=$(echo $URLFILE|sed -r 's#^.*/SLACKPKGPLUS_([^/]+)/.*$#\1#')
|
||||
URLFILE=$(echo $URLFILE|sed "s#^.*/SLACKPKGPLUS_$PREPO/#${MIRRORPLUS[$PREPO]}#")
|
||||
fi
|
||||
echo "Url: ${URLFILE/.\//}"
|
||||
if [ "$DETAILED_INFO" == "filelist" ];then
|
||||
FILELIST="$(zgrep ^${fullpath/\/${repository}/}/$namepkg.$ext $WORKDIR/$repository-filelist.gz 2>/dev/null)"
|
||||
if [ -z "$FILELIST" ];then
|
||||
echo "Filelist: no file list available"
|
||||
if echo $repository|grep -q SBO_;then
|
||||
fullpath=${fullpath/*$repository\//}
|
||||
if [ "$repository" == "SBO_current" ];then
|
||||
fullpath="plain/$fullpath/"
|
||||
else
|
||||
echo "Filelist:"
|
||||
echo "$FILELIST"|sed "s/ /\n/g"|tail +2|sed 's/^/ /'
|
||||
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
|
||||
PREPO=$(echo $URLFILE|sed -r 's#^.*/SLACKPKGPLUS_([^/]+)/.*$#\1#')
|
||||
URLFILE=$(echo $URLFILE|sed "s#^.*/SLACKPKGPLUS_$PREPO/#${MIRRORPLUS[$PREPO]}#")
|
||||
fi
|
||||
echo "Url: ${URLFILE/.\//}"
|
||||
if [ "$DETAILED_INFO" == "filelist" ];then
|
||||
FILELIST="$(zgrep ^${fullpath/\/${repository}/}/$namepkg.$ext $WORKDIR/$repository-filelist.gz 2>/dev/null)"
|
||||
if [ -z "$FILELIST" ];then
|
||||
echo "Filelist: no file list available"
|
||||
else
|
||||
echo "Filelist:"
|
||||
echo "$FILELIST"|sed "s/ /\n/g"|tail +2|sed 's/^/ /'
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
echo
|
||||
|
|
Loading…
Reference in a new issue