X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.common;h=ebf89d8507d96ae31c042024aced966ab63377f5;hb=6602e611b81e2a54a1ab7b57d04b52ba38535cce;hp=b1530ac2b0e91b9fa4fd30fcd1fe9e57917bd4d7;hpb=22b1e5e7a2d923b29901c23cd081f53aabdba4ef;p=build.git diff --git a/build.common b/build.common index b1530ac2..ebf89d85 100644 --- a/build.common +++ b/build.common @@ -72,8 +72,13 @@ function pl_yumexclude () { keyword=$1; shift fcdistro=$1; shift pldistro=$1; shift + builddir=$1; shift # search for file "yumexclude.pkgs" - yumexclude_file=$(pl_locateDistroFile ../build/ $pldistro "yumexclude.pkgs") + yumexclude_file=$(pl_locateDistroFile $builddir $pldistro "yumexclude.pkgs") + # + # check if pkgs.py is in PATH + type -p pkgs.py >& /dev/null || export PATH=$builddir:$PATH + # parse it pl_parsePkgs keyword $fcdistro $pldistro $yumexclude_file || \ { echo pl_yumexclude failed with fcdistro=$fcdistro and pldistro=$pldistro; return 1 ; }