aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasissounds@gmail.com>2015-02-19 01:50:18 -0500
committerKylie McClain <somasissounds@gmail.com>2015-02-19 01:50:18 -0500
commitfe3ea3a5e441ebbaa305bfaa563d8f2860c663b4 (patch)
tree7d44339e598b6d029899facfc48ee9b08b52498e
parent63b5432cf878c1823433e456d74f545b42cca969 (diff)
downloadclang-compat-utils-fe3ea3a5e441ebbaa305bfaa563d8f2860c663b4.tar.gz
clang-compat-utils-fe3ea3a5e441ebbaa305bfaa563d8f2860c663b4.tar.xz
clang-compat-utils-fe3ea3a5e441ebbaa305bfaa563d8f2860c663b4.zip
clang-blacklist: check pkg format before adding blindly
-rwxr-xr-xclang-blacklist4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang-blacklist b/clang-blacklist
index babd4c8..fe3909b 100755
--- a/clang-blacklist
+++ b/clang-blacklist
@@ -23,6 +23,10 @@ fi
temp=$(mktemp)
for pkg in $@;do
+ if [[ "$pkg" != */* ]];then
+ echo "\"$pkg\" isn't in the right format. category/pn, category/pn-pv, category/pn:slot, category/pn-pv:slot."
+ exit 3
+ fi
echo "$pkg" >> "$packages_gcc" || exit 2
sort -ud "$packages_gcc" > "$temp"
yes | mv "$temp" "$packages_gcc" || :