[dakbot/master] Warn user she can't get a lock during dinstall
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
---
Dak/plugin.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/Dak/plugin.py b/Dak/plugin.py
index 1dee6ad..f6cfc7e 100644
--- a/Dak/plugin.py
+++ b/Dak/plugin.py
@@ -234,6 +234,11 @@ class Dak(callbacks.Plugin):
if key == "ALL" and len(self.locks) > 0:
irc.error("Can't lock all, there are existing locks")
return
+ if key != "NEW":
+ dinstall_phase = self.dinstall_phases()
+ if dinstall_phase:
+ irc.error("Go fishing! %s" % dinstall_phase)
+ return
if self.locks.has_key(key):
if key == "NEW":
if msg.nick in self.locks[key]:
--
1.7.10.4
Reply to: