mirror of
https://github.com/zuno/slackpkgplus
synced 2025-01-13 20:01:04 +01:00
dir:// repositories and inline repositories has best priority.
This commit is contained in:
parent
5c3a9f01c1
commit
1b8fcac079
1 changed files with 2 additions and 2 deletions
|
@ -102,10 +102,10 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
else
|
else
|
||||||
grep -vEw -f ${TMPDIR}/blacklist -f ${TMPDIR}/blacklist.slackpkgplus >${TMPDIR}/blacklist.tmp
|
grep -vEw -f ${TMPDIR}/blacklist -f ${TMPDIR}/blacklist.slackpkgplus >${TMPDIR}/blacklist.tmp
|
||||||
fi
|
fi
|
||||||
cat ${TMPDIR}/blacklist.tmp
|
|
||||||
if [ "$(head -1 ${TMPDIR}/blacklist.tmp|awk '{print $1}')" != "local" ];then
|
if [ "$(head -1 ${TMPDIR}/blacklist.tmp|awk '{print $1}')" != "local" ];then
|
||||||
cat ${TMPDIR}/pkglist-pre
|
cat ${TMPDIR}/pkglist-pre
|
||||||
fi
|
fi
|
||||||
|
cat ${TMPDIR}/blacklist.tmp
|
||||||
cat $TMPDIR/greylist.* >$TMPDIR/greylist
|
cat $TMPDIR/greylist.* >$TMPDIR/greylist
|
||||||
grep -qvEw -f $TMPDIR/greylist $TMPDIR/pkglist-pre >$TMPDIR/unchecklist
|
grep -qvEw -f $TMPDIR/greylist $TMPDIR/pkglist-pre >$TMPDIR/unchecklist
|
||||||
|
|
||||||
|
@ -1452,7 +1452,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
localpath=$(pwd)/$localpath
|
localpath=$(pwd)/$localpath
|
||||||
fi
|
fi
|
||||||
( cd $localpath
|
( cd $localpath
|
||||||
ls -ld *.t[blxg]z|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$repository'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
|
ls -ld *.t[blxg]z 2>/dev/null|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$repository'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
|
||||||
)
|
)
|
||||||
MIRRORPLUS[$repository]="file:/$localpath/"
|
MIRRORPLUS[$repository]="file:/$localpath/"
|
||||||
PRIORITYLIST=( ${PRIORITYLIST[*]} SLACKPKGPLUS_${repository}:.* )
|
PRIORITYLIST=( ${PRIORITYLIST[*]} SLACKPKGPLUS_${repository}:.* )
|
||||||
|
|
Loading…
Reference in a new issue