X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdbconn.py;h=5b5dc5bc707f375a5027cf75777e47ec41b23ee7;hb=3daf8dd1e94e0fe77ea203c3c8ba0faf89ad924c;hp=f314b3f7ef37a2defaf51c6b127c269265bac648;hpb=3c14e39afe707f650e3aae38f70c0b91dbd14573;p=dak.git diff --git a/daklib/dbconn.py b/daklib/dbconn.py index f314b3f7..5b5dc5bc 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -752,7 +752,7 @@ class BuildQueue(object): # Crude hack with open and append, but this whole section is and should be redone. if self.notautomatic: release=open("Release", "a") - release.write("NotAutomatic: yes") + release.write("NotAutomatic: yes\n") release.close() # Sign if necessary @@ -2640,7 +2640,8 @@ def split_uploaders(uploaders_list): Split the Uploaders field into the individual uploaders and yield each of them. Beware: email addresses might contain commas. ''' - for uploader in uploaders_list.replace(">, ", ">\t").split("\t"): + import re + for uploader in re.sub(">[ ]*,", ">\t", uploaders_list).split("\t"): yield uploader.strip() @session_wrapper