bodhi/masher.py | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 2cf099440dfd7d989c2c613f3450e50ad2da6355
Author: Luke Macken <lmacken(a)redhat.com>
Date: Wed Aug 19 21:55:01 2009 -0400
Prevent the resuming of a push without a masher state lock file
diff --git a/bodhi/masher.py b/bodhi/masher.py
index 9c7df3c..bb67e51 100644
--- a/bodhi/masher.py
+++ b/bodhi/masher.py
@@ -239,6 +239,11 @@ class MashTask(Thread):
"push, or remove %s" % mash_lock)
raise MashTaskException
else:
+ if self.resume:
+ msg = "Trying to resume a push, yet %s doesn't exist!" %
mash_lock
+ log.error(msg)
+ raise MashTaskException(msg)
+
log.debug("Creating lock for updates push: %s" % mash_lock)
lock = file(mash_lock, 'w')
pickle.dump({
Show replies by date