X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_accepted.py;h=20aab49515e5af6be63497c7578cd749a0465705;hb=cb182fca01ecf29916eb95201db7d62ee8631be7;hp=7dca0d4db9eb10e6062f5d6fbb47b0b32c82504f;hpb=d41f7d3febab2797afbc7b48d0b16e9db32684c5;p=dak.git diff --git a/dak/process_accepted.py b/dak/process_accepted.py index 7dca0d4d..20aab495 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -311,13 +311,13 @@ def install (): # Add the src_uploaders to the DB if dsc.get("dm-upload-allowed", "no") == "yes": - uploader_ids = [] + uploader_ids = [maintainer_id] if dsc.has_key("uploaders"): - uploader_ids = [ - daklib.database.get_or_set_maintainer_id( u.strip() ) - for u in dsc["uploaders"].split(",") - ] - uploader_ids.append(maintainer_id) + for u in dsc["uploaders"].split(","): + u = u.replace("'", "\\'") + u = u.strip() + uploader_ids.append( + daklib.database.get_or_set_maintainer_id(u)) for u in uploader_ids: projectB.query("INSERT INTO src_uploaders (source, maintainer) VALUES (currval('source_id_seq'), %d)" % (u))