Move applyblacklist to end of makelist()

Change -E to -F in applyblacklist()
Remove '>' prompt in answer()
This commit is contained in:
Dave Woodfall 2021-02-24 23:14:18 +00:00
parent 19c9fc0d9b
commit a96e181033

View file

@ -618,7 +618,7 @@ function mkregex_blacklist() {
# Blacklist filter
#
function applyblacklist() {
grep -vE -f ${TMPDIR}/blacklist
grep -vF -f ${TMPDIR}/blacklist
}
# Function to make install/reinstall/upgrade lists
@ -635,10 +635,9 @@ function makelist() {
awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
else
ls -1 $ROOT/var/log/packages/* |
awk -f /usr/libexec/slackpkg/pkglist.awk |
applyblacklist > ${TMPDIR}/tmplist
awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist
fi
cat ${WORKDIR}/pkglist | applyblacklist > ${TMPDIR}/pkglist
cat ${WORKDIR}/pkglist > ${TMPDIR}/pkglist
touch ${TMPDIR}/waiting
@ -799,7 +798,7 @@ function makelist() {
rm -f $PKGNAMELIST
;;
esac
LIST=$(echo -e $LIST | tr \ "\n" | uniq )
LIST=$( printf "%s\n" $LIST | applyblacklist | sort -u )
rm ${TMPDIR}/waiting
@ -821,7 +820,7 @@ function answer() {
ANSWER="$DEFAULT_ANSWER"
echo $DEFAULT_ANSWER
else
read -p "> " ANSWER
read ANSWER
fi
}