From ff6b60557955e8bd683b5722876f97198203215b Mon Sep 17 00:00:00 2001 From: James Troup Date: Sat, 27 Nov 2004 19:24:22 +0000 Subject: [PATCH] 2004-11-27 James Troup * jennifer (check_distributions): support 'reject' suite map type. --- jennifer | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jennifer b/jennifer index fcf41d28..4b3bf44a 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.53 2004-11-27 17:59:47 troup Exp $ +# $Id: jennifer,v 1.54 2004-11-27 19:24:22 troup 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.53 $"; +jennifer_version = "$Revision: 1.54 $"; Cnf = None; Options = None; @@ -288,6 +288,10 @@ def check_distributions(): if changes["distribution"].has_key(suite): del changes["distribution"][suite]; reject("Ignoring %s as a target suite." % (suite), "Warning: "); + elif type == "reject": + suite = args[1]; + if changes["distribution"].has_key(suite): + reject("Uploads to %s are not accepted." % (suite)); # Ensure there is (still) a target distribution if changes["distribution"].keys() == []: -- 2.39.2