[kernel] r19516 - dists/trunk/linux/debian/bin
Bastian Blank
waldi at alioth.debian.org
Wed Nov 21 17:24:33 UTC 2012
Author: waldi
Date: Wed Nov 21 17:24:33 2012
New Revision: 19516
Log:
debian/bin/gencontrol.py: Bail out if disable requests can't be honored.
Modified:
dists/trunk/linux/debian/bin/gencontrol.py
Modified: dists/trunk/linux/debian/bin/gencontrol.py
==============================================================================
--- dists/trunk/linux/debian/bin/gencontrol.py Wed Nov 21 09:07:03 2012 (r19515)
+++ dists/trunk/linux/debian/bin/gencontrol.py Wed Nov 21 17:24:33 2012 (r19516)
@@ -122,9 +122,12 @@
["$(MAKE) -f debian/rules.real install-libc-dev_%s %s" %
(arch, makeflags)])
- if self.changelog[0].distribution == 'UNRELEASED' and os.getenv('DEBIAN_KERNEL_DISABLE_INSTALLER'):
- import warnings
- warnings.warn(u'Disable building of installer modules on request (DEBIAN_KERNEL_DISABLE_INSTALLER set)')
+ if os.getenv('DEBIAN_KERNEL_DISABLE_INSTALLER'):
+ if self.changelog[0].distribution == 'UNRELEASED':
+ import warnings
+ warnings.warn(u'Disable installer modules on request (DEBIAN_KERNEL_DISABLE_INSTALLER set)')
+ else:
+ raise RuntimeError(u'Unable to disable installer modules in release build (DEBIAN_KERNEL_DISABLE_INSTALLER set)')
else:
# Add udebs using kernel-wedge
installer_def_dir = 'debian/installer'
@@ -292,10 +295,13 @@
build_debug = config_entry_build.get('debug-info')
- if build_debug and self.changelog[0].distribution == 'UNRELEASED' and os.getenv('DEBIAN_KERNEL_DISABLE_DEBUG'):
- import warnings
- warnings.warn(u'Disable building of debug infos on request (DEBIAN_KERNEL_DISABLE_DEBUG set)')
- build_debug = False
+ if os.getenv('DEBIAN_KERNEL_DISABLE_DEBUG'):
+ if self.changelog[0].distribution == 'UNRELEASED':
+ import warnings
+ warnings.warn(u'Disable debug infos on request (DEBIAN_KERNEL_DISABLE_DEBUG set)')
+ build_debug = False
+ else:
+ raise RuntimeError(u'Unable to disable debug infos in release build (DEBIAN_KERNEL_DISABLE_DEBUG set)')
if build_debug:
makeflags['DEBUG'] = True
More information about the Kernel-svn-changes
mailing list