summaryrefslogtreecommitdiff
path: root/src/librecheck/check-pkgbuild
diff options
context:
space:
mode:
Diffstat (limited to 'src/librecheck/check-pkgbuild')
-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 $?