summaryrefslogtreecommitdiff
path: root/is_unfree
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-02-04 13:17:05 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-02-04 13:17:05 -0300
commit3fb8e62b798c0dffb201727439a6a0d90bc1b20f (patch)
treef69c1b6db4082e9188f22be8d3d3d5cc5212f34f /is_unfree
parent5ab36af3c7a505ff40bb8ca46ec387b94d85cbdf (diff)
parent9808018ca09050ade144d0dfc0b0b6edadefa368 (diff)
Merge branch 'master' of ssh://gparabola/libretools
Conflicts: libremakepkg
Diffstat (limited to 'is_unfree')
-rwxr-xr-xis_unfree11
1 files changed, 11 insertions, 0 deletions
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 $?