summaryrefslogtreecommitdiff
path: root/src/pkgbuild-check-nonfree
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkgbuild-check-nonfree')
-rwxr-xr-xsrc/pkgbuild-check-nonfree7
1 files changed, 5 insertions, 2 deletions
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