- add workaround for mandriva so that it obeys or
authorMichael Schröder <mls@suse.de>
Mon, 9 Jun 2008 17:22:23 +0000 (17:22 +0000)
committerMichael Schröder <mls@suse.de>
Mon, 9 Jun 2008 17:22:23 +0000 (17:22 +0000)
  debuginfo setting

build

diff --git a/build b/build
index 1355384..66f8d04 100755 (executable)
--- 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"