X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=jennifer;h=90fd13feae08eaf6fad353197726f3978862087a;hb=41b58850cb71d3fa204810b19cb0e00a46992fdb;hp=4b3bf44a386adf433cd1d43f29f6eb5bcbbc5dda;hpb=a8d77c16b228febaed8f4cd0a85dc010a61d382c;p=dak.git diff --git a/jennifer b/jennifer index 4b3bf44a..90fd13fe 100755 --- a/jennifer +++ b/jennifer @@ -2,7 +2,7 @@ # Checks Debian packages from Incoming # Copyright (C) 2000, 2001, 2002, 2003, 2004 James Troup -# $Id: jennifer,v 1.54 2004-11-27 19:24:22 troup Exp $ +# $Id: jennifer,v 1.55 2005-01-14 14:07:17 ajt Exp $ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -45,7 +45,7 @@ re_strip_revision = re.compile(r"-([^-]+)$"); ################################################################################ # Globals -jennifer_version = "$Revision: 1.54 $"; +jennifer_version = "$Revision: 1.55 $"; Cnf = None; Options = None; @@ -274,6 +274,9 @@ def check_distributions(): changes["distribution"][dest] = 1; if type != "silent-map": reject("Mapping %s to %s." % (source, dest),""); + if changes.has_key("distribution-version"): + if changes["distribution-version"].has_key(source): + changes["distribution-version"][source]=dest elif type == "map-unreleased": (source, dest) = args[1:3]; if changes["distribution"].has_key(source): @@ -292,6 +295,13 @@ def check_distributions(): suite = args[1]; if changes["distribution"].has_key(suite): reject("Uploads to %s are not accepted." % (suite)); + elif type == "propup-version": + # give these as "uploaded-to(non-mapped) suites-to-add-when-upload-obsoletes" + # + # changes["distribution-version"] looks like: {'testing': 'testing-proposed-updates'} + if args[1] in changes["distribution"]: + changes.setdefault("distribution-version", {}) + for suite in args[2:]: changes["distribution-version"][suite]=suite # Ensure there is (still) a target distribution if changes["distribution"].keys() == []: