summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2010-11-03 12:49:38 +0000
committerMichael Büsch <mb@bu3sch.de>2010-11-03 12:49:38 +0000
commit1e317e8f43b248d0ab6a0684d8b158aa0271231b (patch)
tree5bba4fdb776ed4def22fc53945747428efeb5872 /scripts
parent57ccc7e834de72ca9d926c4931f8bd37d72aa014 (diff)
downloadmtk-20170518-1e317e8f43b248d0ab6a0684d8b158aa0271231b.zip
mtk-20170518-1e317e8f43b248d0ab6a0684d8b158aa0271231b.tar.gz
mtk-20170518-1e317e8f43b248d0ab6a0684d8b158aa0271231b.tar.bz2
deptest: Add sanity check to avoid trouble with illegal package names
SVN-Revision: 23819
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deptest.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/deptest.sh b/scripts/deptest.sh
index d72b7a0..762821a 100755
--- a/scripts/deptest.sh
+++ b/scripts/deptest.sh
@@ -36,6 +36,8 @@ die()
test_package() # $1=pkgname
{
local pkg="$1"
+ [ -z "$(echo "$pkg" | grep -e '/')" -a "$pkg" != "." -a "$pkg" != ".." ] || \
+ die "Package name \"$pkg\" contains illegal characters"
local SELECTED=
for conf in `grep CONFIG_PACKAGE tmp/.packagedeps | grep -E "[ /]$pkg\$" | sed -e 's,package-$(\(CONFIG_PACKAGE_.*\)).*,\1,'`; do
grep "$conf=" .config > /dev/null && SELECTED=1 && break