From 3001b2b0856952f09d661ec77b4db46ae0b69a4e Mon Sep 17 00:00:00 2001 From: James Meyer Date: Thu, 29 Jan 2009 15:09:19 -0600 Subject: Modify mp to not include the pkgname when checking for which repo to use. Specifily this corrects placing klibc-extras in the extra repo. --- build_tools/bin/mp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build_tools/bin/mp b/build_tools/bin/mp index 102454e..5a75ca5 100755 --- a/build_tools/bin/mp +++ b/build_tools/bin/mp @@ -23,20 +23,21 @@ fi function find_repo { - echo $mydir|grep -q "extra" + dirname=`dirname $mydir` + echo $dirname|grep -q "extra" if [ $? = 0 ] then REPO=extra${PFIX} else REPO=core${PFIX} fi - echo $mydir|grep -q "chroot-devel" + echo $dirname|grep -q "chroot-devel" if [ $? = 0 ] then REPO=chroot-devel fi - echo $mydir|grep -q "mv-core" + echo $dirname|grep -q "mv-core" if [ $? = 0 ] then REPO=mv-core @@ -51,6 +52,7 @@ function find_repo { then mkdir -p $DOCROOT fi + } -- cgit v0.12