mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-26 09:58:43 +01:00
slackpkg+ did not work properly when run as a package group instead
single packages. Thankyou to Poprocks an phenixia2003
This commit is contained in:
parent
f3dac64a1b
commit
7f2247e6ee
1 changed files with 7 additions and 3 deletions
|
@ -1006,9 +1006,13 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
|||
grep "^${REPOSITORY} " ${TMPDIR}/priority.filters | cut -f2 -d" " > ${TMPDIR}/filter.patterns
|
||||
grep "^[.][*] " ${TMPDIR}/priority.filters | cut -f2 -d" " >> ${TMPDIR}/filter.patterns
|
||||
|
||||
# If no filter patterns were found, or if the selected package does not
|
||||
# match any of the filter patterns, the selected package is rejected...
|
||||
if [ ! -s ${TMPDIR}/filter.patterns ] || ! echo "${PKGDATA[5]}.${PKGDATA[7]}" | grep -q -f ${TMPDIR}/filter.patterns ; then
|
||||
# The selected package is rejected when (1) no filter patterns were found, or (2)
|
||||
# none of the filter patterns matches the package's data
|
||||
#
|
||||
if [ ! -s ${TMPDIR}/filter.patterns ] \
|
||||
|| \
|
||||
! echo "${PKGDATA[*]}" | grep -q -f ${TMPDIR}/filter.patterns ; then
|
||||
|
||||
PKGDATA=""
|
||||
LINEIDX=""
|
||||
NAME=""
|
||||
|
|
Loading…
Reference in a new issue