[Reproducible-commits] [misc] 03/06: adding a bug should be idempotent
Chris Lamb
lamby at moszumanska.debian.org
Tue Jul 7 08:32:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository misc.
commit 80dadf75cf77a812dd866b52b6533df74e0a409e
Author: Chris Lamb <lamby at debian.org>
Date: Tue Jul 7 09:26:54 2015 +0100
adding a bug should be idempotent
---
edit-notes | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/edit-notes b/edit-notes
index 96a61ab..fe766a6 100755
--- a/edit-notes
+++ b/edit-notes
@@ -61,7 +61,8 @@ if __name__ == '__main__':
for x in args.add_bug:
if 'bugs' not in data:
data['bugs'] = []
- data['bugs'].append(x)
+ if x not in data['bugs']:
+ data['bugs'].append(x)
if args.set_comment:
data['comments'] = args.set_comment
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git
More information about the Reproducible-commits
mailing list