deptest: Add sanity check to avoid trouble with illegal package names
SVN-Revision: 23819
This commit is contained in:
parent
57ccc7e834
commit
1e317e8f43
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ die()
|
||||||
test_package() # $1=pkgname
|
test_package() # $1=pkgname
|
||||||
{
|
{
|
||||||
local pkg="$1"
|
local pkg="$1"
|
||||||
|
[ -z "$(echo "$pkg" | grep -e '/')" -a "$pkg" != "." -a "$pkg" != ".." ] || \
|
||||||
|
die "Package name \"$pkg\" contains illegal characters"
|
||||||
local SELECTED=
|
local SELECTED=
|
||||||
for conf in `grep CONFIG_PACKAGE tmp/.packagedeps | grep -E "[ /]$pkg\$" | sed -e 's,package-$(\(CONFIG_PACKAGE_.*\)).*,\1,'`; do
|
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
|
grep "$conf=" .config > /dev/null && SELECTED=1 && break
|
||||||
|
|
Loading…
Reference in a new issue