config/path: add support for <PKGNAME>:<TARGET> naming scheme for PKG_DIR variable

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2013-03-30 10:58:24 +01:00
parent ef8e871d3c
commit 891b958e53

View File

@ -56,7 +56,7 @@ SED="sed -i"
if [ -n "$1" ]; then
FOUND=0
for DIR in `find $PACKAGES -type d -name $1 ! -wholename \*\/source\/\* 2>/dev/null` ; do
for DIR in `find $PACKAGES -type d -name $(echo $1| awk -F : '{print $1}') ! -wholename \*\/source\/\* 2>/dev/null` ; do
# keep track of dirs with meta for debugging
if [ -z "$ALL_DIRS" ] ; then
ALL_DIRS="$DIR"