Ignore:
Timestamp:
2010-11-03T13:49:38+01:00 (6 years ago)
Author:
mb
Message:

deptest: Add sanity check to avoid trouble with illegal package names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/deptest.sh

    r23818 r23819  
    3737{ 
    3838        local pkg="$1" 
     39        [ -z "$(echo "$pkg" | grep -e '/')" -a "$pkg" != "." -a "$pkg" != ".." ] || \ 
     40                die "Package name \"$pkg\" contains illegal characters" 
    3941        local SELECTED= 
    4042        for conf in `grep CONFIG_PACKAGE tmp/.packagedeps | grep -E "[ /]$pkg\$" | sed -e 's,package-$(\(CONFIG_PACKAGE_.*\)).*,\1,'`; do 
Note: See TracChangeset for help on using the changeset viewer.