[kernel] r10722 - people/waldi/dkt/lib/dkt/hooks/modules

Bastian Blank waldi at alioth.debian.org
Wed Mar 5 14:05:53 UTC 2008


Author: waldi
Date: Wed Mar  5 14:05:52 2008
New Revision: 10722

Log:
lib/dkt/hooks/modules/backward_symlinks.py: Don't fail on missing images.


Modified:
   people/waldi/dkt/lib/dkt/hooks/modules/backward_symlinks.py

Modified: people/waldi/dkt/lib/dkt/hooks/modules/backward_symlinks.py
==============================================================================
--- people/waldi/dkt/lib/dkt/hooks/modules/backward_symlinks.py	(original)
+++ people/waldi/dkt/lib/dkt/hooks/modules/backward_symlinks.py	Wed Mar  5 14:05:52 2008
@@ -64,7 +64,12 @@
             if symlink_remove not in (symlink_act, symlink_old):
                 raise NotImplementedError
 
-        return [[symlink_old, symlink_act]]
+        ret = []
+        if symlink_old is not None:
+            ret.append(symlink_old)
+        if symlink_act is not None:
+            ret.append(symlink_act)
+        return [ret]
 
 register('backward-symlinks', interfaces.IBootConfigPartition, Hook(), default_registry.PRIORITY_FIRST)
 register('backward-symlinks', interfaces.IImageTask, Hook())



More information about the Kernel-svn-changes mailing list