Do not unlock ALL at dinstall time
authorJoerg Jaspert <joerg@debian.org>
Sat, 14 Feb 2009 09:06:16 +0000 (10:06 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sat, 14 Feb 2009 09:06:16 +0000 (10:06 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Dak/plugin.py

index 691dad4..f1bdc04 100644 (file)
@@ -70,6 +70,10 @@ class Dak(callbacks.Plugin):
                 log.debug("DAK: Not yet done, dinstall flag %s" % (self.registryValue('dinstall')))
                 conf.supybot.plugins.Dak.get('dinstall').setValue(True)
                 conf.supybot.plugins.Dak.get('warned').setValue(True)
+                if self.locks.has_key("ALL"):
+                    irc.queueMsg(msgMaker(self.channel, "While it is DINSTALL time, there is an ALL lock. Assuming nothing happens."))
+                    irc.queueMsg(msgMaker(self.channel, "%s: Hope that is correct, Mr. \"Lets_lock_ALL_and_block_everyone.\"" % (self.locks['ALL']) ))
+                    return
                 irc.queueMsg(msgMaker(self.channel, "It is DINSTALL time"))
                 if len(self.locks) >= 1:
                     for key in self.locks: