diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-23 00:14:43 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-05-23 00:14:43 -0400 |
commit | 26b92ff1318ccadd1c9cda337b96b3eba7982ed6 (patch) | |
tree | 11890f5b8317dfe8ffbe87fdf56253eb978b4a09 /src | |
parent | f0747712a22addd54c33092f61f9cc5d3eaf2a90 (diff) |
is_unfree: use blacklist.sh
Diffstat (limited to 'src')
-rwxr-xr-x | src/is_unfree | 6 |
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 $? |