summaryrefslogtreecommitdiff
path: root/src/librecheck/check-pkgbuild/libre-blacklist
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-01-17 21:13:49 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-01-17 21:13:49 -0500
commite1f0615da82b8fa0f605678cc37ea883bd5eabed (patch)
tree3059431f1c8247d56e9c3c0b60fe8f6f229854a7 /src/librecheck/check-pkgbuild/libre-blacklist
parent5c2dd97a91421e6e5f7e920579fcb88bb71e7fa7 (diff)
Diffstat (limited to 'src/librecheck/check-pkgbuild/libre-blacklist')
-rwxr-xr-xsrc/librecheck/check-pkgbuild/libre-blacklist8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/librecheck/check-pkgbuild/libre-blacklist b/src/librecheck/check-pkgbuild/libre-blacklist
new file mode 100755
index 0000000..3c89004
--- /dev/null
+++ b/src/librecheck/check-pkgbuild/libre-blacklist
@@ -0,0 +1,8 @@
+#!/bin/bash
+# Checks if a package is on blacklist
+
+. /usr/share/libretools/conf.sh
+
+blacklist="$XDG_CONFIG_HOME/libretools/blacklist.txt"
+egrep -q "^${1}:" "${blacklist}"
+exit $?