projects
/
openwrt
/
staging
/
rmilecki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57ccc7e
)
deptest: Add sanity check to avoid trouble with illegal package names
author
Michael Büsch
<mb@bu3sch.de>
Wed, 3 Nov 2010 12:49:38 +0000
(12:49 +0000)
committer
Michael Büsch
<mb@bu3sch.de>
Wed, 3 Nov 2010 12:49:38 +0000
(12:49 +0000)
SVN-Revision: 23819
scripts/deptest.sh
patch
|
blob
|
history
diff --git
a/scripts/deptest.sh
b/scripts/deptest.sh
index d72b7a0af65e2da9be70458ce60f6b9f81130429..762821a39cb078a278c55f88fd24f95af532683e 100755
(executable)
--- 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