From 26b92ff1318ccadd1c9cda337b96b3eba7982ed6 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 23 May 2013 00:14:43 -0400 Subject: is_unfree: use blacklist.sh --- src/is_unfree | 6 +++--- 1 file 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 $? -- cgit v1.2.3-54-g00ecf