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
|
cat $WORKDIR/pkglist|grep -E "^[^ ]* $NAME "|while read repository name version arch tag namepkg fullpath ext;do
|
||||||
echo "Package: $namepkg"
|
echo "Package: $namepkg"
|
||||||
echo "Repository: ${repository/SLACKPKGPLUS_/}"
|
echo "Repository: ${repository/SLACKPKGPLUS_/}"
|
||||||
echo "Path: ${fullpath/\/SLACKPKGPLUS_${repository/SLACKPKGPLUS_/}/}/$namepkg.$ext"
|
if echo $repository|grep -q SBO_;then
|
||||||
URLFILE=${SOURCE}${fullpath}/${namepkg}.${ext}
|
fullpath=${fullpath/*$repository\//}
|
||||||
if echo $URLFILE|grep -q /SLACKPKGPLUS_;then
|
if [ "$repository" == "SBO_current" ];then
|
||||||
PREPO=$(echo $URLFILE|sed -r 's#^.*/SLACKPKGPLUS_([^/]+)/.*$#\1#')
|
fullpath="plain/$fullpath/"
|
||||||
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
|
else
|
||||||
echo "Filelist:"
|
fullpath="$fullpath/"
|
||||||
echo "$FILELIST"|sed "s/ /\n/g"|tail +2|sed 's/^/ /'
|
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
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue