Escape plus signs in blacklist regex

Signed-off-by: Robby Workman <rworkman@slackware.com>
This commit is contained in:
Dave Woodfall 2021-02-16 19:09:07 +00:00 committed by Robby Workman
parent f20d83a658
commit 0a37c5eee7

View file

@ -600,7 +600,7 @@ function mkregex_blacklist() {
# create second blacklist of single packages from tmp list # create second blacklist of single packages from tmp list
grep -E -f ${TMPDIR}/blacklist.tmp ${WORKDIR}/pkglist | grep -E -f ${TMPDIR}/blacklist.tmp ${WORKDIR}/pkglist |
awk '{print " "$2" "}' > ${TMPDIR}/blacklist awk '{print " "$2" "}' | sed -E "s,[+],\\\+,g" > ${TMPDIR}/blacklist
# remove sets from tmp blacklist, join both lists to create unique list # remove sets from tmp blacklist, join both lists to create unique list
sed -E "/\.\/$PKGMAIN\/[[:alpha:]]+/d" ${TMPDIR}/blacklist.tmp | sed -E "/\.\/$PKGMAIN\/[[:alpha:]]+/d" ${TMPDIR}/blacklist.tmp |