[kernel] r10140 - dists/trunk/linux-modules-extra-2.6/debian/bin
Bastian Blank
waldi at alioth.debian.org
Fri Jan 18 22:56:21 UTC 2008
Author: waldi
Date: Fri Jan 18 22:56:21 2008
New Revision: 10140
Log:
debian/bin/gencontrol.py: Remove old code.
Modified:
dists/trunk/linux-modules-extra-2.6/debian/bin/gencontrol.py
Modified: dists/trunk/linux-modules-extra-2.6/debian/bin/gencontrol.py
==============================================================================
--- dists/trunk/linux-modules-extra-2.6/debian/bin/gencontrol.py (original)
+++ dists/trunk/linux-modules-extra-2.6/debian/bin/gencontrol.py Fri Jan 18 22:56:21 2008
@@ -36,22 +36,24 @@
def do_flavour(self, packages, makefile, arch, featureset, flavour, vars, makeflags, extra):
config_entry = self.config['module', 'base']
- if config_entry.get('modules', True) is False:
- return
super(Gencontrol, self).do_flavour(packages, makefile, arch, featureset, flavour, vars, makeflags, extra)
- have_modules = False
-
for module in iter(config_entry['modules']):
- if self.do_module_check(module, arch, featureset, flavour):
- self.do_module(module, packages, makefile, arch, featureset, flavour, vars.copy(), makeflags.copy(), extra)
- have_modules = True
-
- if not have_modules:
- for i in self.makefile_targets:
- pass
- #makefile.append("%s-%s-%s-%s:" % (i, arch, featureset, flavour))
+ if arch not in config_entry.get('arches', [arch]):
+ continue
+ if arch in config_entry.get('not-arches', []):
+ continue
+ if featureset not in config_entry.get('featuresets', [featureset]):
+ continue
+ if featureset in config_entry.get('not-featuresets', []):
+ continue
+ if flavour not in config_entry.get('flavours', [flavour]):
+ continue
+ if flavour in config_entry.get('not-flavours', []):
+ continue
+
+ self.do_module(module, packages, makefile, arch, featureset, flavour, vars.copy(), makeflags.copy(), extra)
def do_module(self, module, packages, makefile, arch, featureset, flavour, vars, makeflags, extra):
config_entry = self.config['module', 'base', module]
@@ -101,24 +103,6 @@
makefile.add("build_%s_%s_%s_%s" % (arch, featureset, flavour, module), cmds = cmds_build)
makefile.add("setup_%s_%s_%s_%s" % (arch, featureset, flavour, module), cmds = cmds_setup)
- def do_module_check(self, module, arch, featureset, flavour):
- config_entry = self.config['module', 'base', module]
-
- if arch not in config_entry.get('arches', [arch]):
- return False
- if arch in config_entry.get('not-arches', []):
- return False
- if featureset not in config_entry.get('featuresets', [featureset]):
- return False
- if featureset in config_entry.get('not-featuresets', []):
- return False
- if flavour not in config_entry.get('flavours', [flavour]):
- return False
- if flavour in config_entry.get('not-flavours', []):
- return False
-
- return True
-
def process_changelog(self):
self.package_version = self.changelog[0].version
self.version = VersionLinux(self.config['version',]['source'])
@@ -154,8 +138,6 @@
config = ConfigParser(self.schemas_base)
config.read(self.config_name)
- print config
-
for section in iter(config):
real = ('module', section[-1],) + section[1:]
self[real] = config[section]
@@ -167,8 +149,6 @@
config = ConfigParser(self.schemas_module)
config.read("%s/%s" % (module, self.config_name))
- print config
-
for section in iter(config):
real = ('module', section[-1], module) + section[1:]
s = self.get(real, {})
More information about the Kernel-svn-changes
mailing list