From: Michael Schröder Date: Mon, 9 Jun 2008 17:22:23 +0000 (+0000) Subject: - add workaround for mandriva so that it obeys or X-Git-Tag: obs_2.0~373 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1bc4d313f7a1ff6f35d4fcf75ff14d4def8226c;p=tools%2Fobs-build.git - add workaround for mandriva so that it obeys or debuginfo setting --- diff --git a/build b/build index 1355384..66f8d04 100755 --- a/build +++ b/build @@ -1114,6 +1114,10 @@ for SPECFILE in "${SPECFILES[@]}" ; do rpmbopts[${#rpmbopts[@]}]='--eval' rpmbopts[${#rpmbopts[@]}]="%define jobs $BUILD_JOBS" fi + if test -s "$BUILD_ROOT/usr/lib/rpm/mandriva/macros" ; then + rpmbopts[${#rpmbopts[@]}]='--eval' + rpmbopts[${#rpmbopts[@]}]="%undefine _enable_debug_packages" + fi if [ -n "$BUILD_DEBUG" ]; then rpmbopts[${#rpmbopts[@]}]='--eval' rpmbopts[${#rpmbopts[@]}]="%suse_insert_debug_package"