[kernel] r11172 - people/waldi/dkt/lib/dkt/bin
Bastian Blank
waldi at alioth.debian.org
Fri Apr 25 13:37:26 UTC 2008
Author: waldi
Date: Fri Apr 25 13:37:25 2008
New Revision: 11172
Log:
lib/dkt/bin/base.py: Ignore non-package items.
Modified:
people/waldi/dkt/lib/dkt/bin/base.py
Modified: people/waldi/dkt/lib/dkt/bin/base.py
==============================================================================
--- people/waldi/dkt/lib/dkt/bin/base.py (original)
+++ people/waldi/dkt/lib/dkt/bin/base.py Fri Apr 25 13:37:25 2008
@@ -42,14 +42,18 @@
def itemconfig_get(self, package):
for i in self.itemconfigs.itervalues():
- if IItemPackageConfig(i).name == package:
- return i
+ try:
+ if IItemPackageConfig(i).name == package:
+ return i
+ except TypeError: pass
raise KeyError(package)
def itemconfig_delete(self, package):
for name, value in self.itemconfigs.iteritems():
- if IItemPackageConfig(name).name == package:
- del self.itemconfigs[name]
+ try:
+ if IItemPackageConfig(name).name == package:
+ del self.itemconfigs[name]
+ except TypeError: pass
def run_imagetask(self, type, *args):
return default_registry.run(IImageTask, 'image_' + type, self.config, *args)
More information about the Kernel-svn-changes
mailing list