]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
hammer: disabled creating debugsoure rpm package 814-hammer-disable-building-debugsource-rpm-package
authorMichal Nowikowski <godfryd@isc.org>
Fri, 9 Aug 2019 06:43:49 +0000 (08:43 +0200)
committerMichal Nowikowski <godfryd@isc.org>
Fri, 9 Aug 2019 06:43:49 +0000 (08:43 +0200)
hammer.py

index b846d03cd397e8f06aa9b9163839191feac97569..9f2fa562a1a3a435328a123f7d928c83f22028ab 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -1536,7 +1536,9 @@ def _build_native_pkg(system, revision, features, tarball_path, env, check_times
         execute('cp %s rpm-root/SOURCES' % tarball_path, check_times=check_times, dry_run=dry_run)
 
         # do rpm build
-        cmd = "rpmbuild --define 'kea_version %s' --define 'isc_version %s' -ba rpm-root/SPECS/kea.spec -D'_topdir /home/vagrant/rpm-root'"
+        cmd = "rpmbuild --define 'kea_version %s' --define 'isc_version %s' -ba rpm-root/SPECS/kea.spec"
+        cmd += " -D'_topdir /home/vagrant/rpm-root'"
+        cmd += " --undefine=_debugsource_packages"  # disable creating debugsource package
         cmd = cmd % (pkg_version, pkg_isc_version)
         execute(cmd, env=env, timeout=60 * 40, check_times=check_times, dry_run=dry_run)