From 35db0a3685d04bca521abe8581a0e95c09ce401a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 16 Apr 2011 17:20:29 -0400 Subject: [PATCH] Temporarily disable writing in `be new` to avoid repeated updates. --- libbe/command/new.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libbe/command/new.py b/libbe/command/new.py index 763d09a..8bb761a 100644 --- a/libbe/command/new.py +++ b/libbe/command/new.py @@ -104,6 +104,7 @@ class New (libbe.command.Command): else: summary = params['summary'] bugdir = self._get_bugdir() + bugdir.storage.writeable = False bug = bugdir.new_bug(summary=summary.strip()) if params['creator'] != None: bug.creator = params['creator'] @@ -119,6 +120,8 @@ class New (libbe.command.Command): bug.status = params['status'] if params['severity'] != None: bug.severity = params['severity'] + bugdir.storage.writeable = True + bug.save() print >> self.stdout, 'Created bug with ID %s' % bug.id.user() return 0 -- 2.26.2