[kernel] r11129 - people/waldi/dkt/bin
Bastian Blank
waldi at alioth.debian.org
Wed Apr 23 08:49:20 UTC 2008
Author: waldi
Date: Wed Apr 23 08:49:19 2008
New Revision: 11129
Log:
bin/dkt-maintainer: Setup modules abi from package name.
Modified:
people/waldi/dkt/bin/dkt-maintainer
Modified: people/waldi/dkt/bin/dkt-maintainer
==============================================================================
--- people/waldi/dkt/bin/dkt-maintainer (original)
+++ people/waldi/dkt/bin/dkt-maintainer Wed Apr 23 08:49:19 2008
@@ -11,7 +11,12 @@
self.package, self.version = package, version
def itemconfig_create(self):
- return Config({'package': {'name': self.package, 'version': self.version}})
+ c = {'package': {'name': self.package, 'version': self.version}}
+ if self.package.startswith('linux-image-'):
+ c['modules'] = {'abi': self.package[12:]}
+ elif self.package.startswith('linux-modules-'):
+ c['modules'] = {'abi': self.package[14:]}
+ return Config(c)
class MainAllPreInst(MainAll):
def __init__(self, package, version, command, *args):
@@ -68,7 +73,7 @@
class MainAllPostRm(MainAll):
def __init__(self, package, version, command, *args):
- super(MainAllPreRm, self).__init__(package, version)
+ super(MainAllPostRm, self).__init__(package, version)
self.command, self.args = command, args
if self.command not in ('purge', 'remove', 'upgrade', 'failed-upgrade', 'abort-install', 'abort-upgrade', 'disappear'):
More information about the Kernel-svn-changes
mailing list