summaryrefslogtreecommitdiff
path: root/src/pkgbuild-check-nonfree
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-08 14:30:15 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-08 14:30:15 -0600
commit0fac4b5188d3e89822b7af967401d14db163bfc4 (patch)
tree78c2aa7f494fefca8bf94ab7c3236bafda856e8e /src/pkgbuild-check-nonfree
parente283ef2aceffd6452d815c02ab3bea0caf7807f0 (diff)
pkgbuild-check-nonfree: add -c flag to not download a new blacklist
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