From: Joerg Jaspert Date: Mon, 21 Apr 2008 10:10:33 +0000 (+0200) Subject: Fix src_uploads in debian maintainers case X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e39baa4e8330eba8473448680771d959a1a57662;p=dak.git Fix src_uploads in debian maintainers case --- diff --git a/ChangeLog b/ChangeLog index fb4b205b..a66eca56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-21 Joerg Jaspert + + * dak/process_accepted.py (install): Do not break if a + source/maintainer combination is already in src_uploaders, "just" + warn us. + 2008-04-20 Thomas Viehmann * daklib/utils.py (build_file_list): Deal with "Format 3 style" diff --git a/dak/process_accepted.py b/dak/process_accepted.py index 20aab495..225f7bb0 100755 --- a/dak/process_accepted.py +++ b/dak/process_accepted.py @@ -313,12 +313,17 @@ def install (): if dsc.get("dm-upload-allowed", "no") == "yes": uploader_ids = [maintainer_id] if dsc.has_key("uploaders"): - for u in dsc["uploaders"].split(","): - u = u.replace("'", "\\'") - u = u.strip() + for u in dsc["uploaders"].split(","): + u = u.replace("'", "\\'") + u = u.strip() uploader_ids.append( - daklib.database.get_or_set_maintainer_id(u)) + daklib.database.get_or_set_maintainer_id(u)) + added_ids = {} for u in uploader_ids: + if added_ids.has_key(u): + daklib.utils.warn("Already saw uploader %s for source %s") % (u, package) + continue + added_ids[u]=1 projectB.query("INSERT INTO src_uploaders (source, maintainer) VALUES (currval('source_id_seq'), %d)" % (u))