diff --git a/files/core-functions.sh b/files/core-functions.sh index 25c0d85..016b846 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -826,7 +826,7 @@ function makelist() { for i in ${PRIORITY[@]}; do PKGS=$( cut -d\ -f1-7 ${TMPDIR}/pkglist | - grep "^${i}.*${PATTERN}" | cut -f6 -d\ ) + grep -i "^${i}.*${PATTERN}" | cut -f6 -d\ ) for FULLNAME in $PKGS ; do NAME=$(cutpkg ${FULLNAME}) @@ -840,7 +840,16 @@ function makelist() { rm -f $PKGNAMELIST ;; esac - LIST=$( printf "%s\n" $LIST | applyblacklist | sort | uniq ) + + case "$CMD" in + search|download) + # don't apply blacklist + LIST=$( printf "%s\n" $LIST | sort | uniq ) + ;; + *) + LIST=$( printf "%s\n" $LIST | applyblacklist | sort | uniq ) + ;; + esac rm ${TMPDIR}/waiting