From 0fac4b5188d3e89822b7af967401d14db163bfc4 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 8 Jun 2013 14:30:15 -0600 Subject: pkgbuild-check-nonfree: add -c flag to not download a new blacklist --- src/pkgbuild-check-nonfree | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/pkgbuild-check-nonfree') diff --git a/src/pkgbuild-check-nonfree b/src/pkgbuild-check-nonfree index 92496be..0f1f6ff 100755 --- a/src/pkgbuild-check-nonfree +++ b/src/pkgbuild-check-nonfree @@ -87,14 +87,17 @@ usage() { echo " 15: Depends on non-free packages" echo '' echo "Options:" + echo ' -c Use the cached blacklist, do not try downloading.' echo ' -f Allow running as root user' echo ' -h Show this message' } main() { local asroot=false - while getopts 'fh' arg; do + local cache=false + while getopts 'cfh' arg; do case "$arg" in + c) cache=true;; f) asroot=true;; h) usage; return 0;; *) usage; return 1;; @@ -112,7 +115,7 @@ main() { return 1 fi - blacklist-update || return 1 + $cache || blacklist-update || return 1 local ret=0 for pkgbuild in "${pkgbuilds[@]}"; do -- cgit v1.2.2