From 8aae92a56d577749d8ff73179ad5186ee7cba34b Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sat, 4 Feb 2012 13:11:13 -0300 Subject: Tool to quickly know if a package is unfree --- is_unfree | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 is_unfree diff --git a/is_unfree b/is_unfree new file mode 100755 index 0000000..f32c193 --- /dev/null +++ b/is_unfree @@ -0,0 +1,11 @@ +#!/bin/bash +# Checks if a package is on blacklist + +# fail immediately on error +set -E + +blacklist="$XDG_CONFIG_HOME/libretools/blacklist.txt" + +egrep -q "^${1}:" "${blacklist}" + +exit $? -- cgit v1.2.3-54-g00ecf