ソースを参照

Fix lower-case bug in pw script

Carsten Dominik 14 年 前
コミット
2072def1b9
1 ファイル変更3 行追加3 行削除
  1. 3 3
      UTILITIES/pw

+ 3 - 3
UTILITIES/pw

@@ -321,10 +321,10 @@ def action_update_patch(rpc, patch_id, state = None, commit = None,
 
             from_addr = '%s <%s>' % (person['name'], person['email'])
             cc_addr   = '%s <%s>' % (submitter['name'], submitter['email'])
-            to_addr   = notify_on_state_change[state]
+            to_addr   = notify_on_state_change[state.lower()]
 
-	    orig_mail = rpc.patch_get_mbox(patch_id)
-	    orig_mail = '> ' + orig_mail.replace('\n','\n> ')
+            orig_mail = rpc.patch_get_mbox(patch_id)
+            orig_mail = '> ' + orig_mail.replace('\n','\n> ')
 
             longdesc = '''Patch %s (http://patchwork.newartisans.com/patch/%s/) is now "%s".