summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-23 00:14:43 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-05-23 00:14:43 -0400
commit26b92ff1318ccadd1c9cda337b96b3eba7982ed6 (patch)
tree11890f5b8317dfe8ffbe87fdf56253eb978b4a09 /src
parentf0747712a22addd54c33092f61f9cc5d3eaf2a90 (diff)
is_unfree: use blacklist.sh
Diffstat (limited to 'src')
-rwxr-xr-xsrc/is_unfree6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/is_unfree b/src/is_unfree
index c2a37c9..64fc322 100755
--- a/src/is_unfree
+++ b/src/is_unfree
@@ -1,8 +1,8 @@
#!/bin/bash
# Checks if a package is on blacklist
-. /etc/libretools.conf
+. /usr/share/libretools/blacklist.sh
-blacklist="$XDG_CONFIG_HOME/libretools/blacklist.txt"
-egrep -q "^${1}:" "${blacklist}"
+line=$(blacklist-lookup "$1")
+[[ -n $line ]]
exit $?