From 2e29655f59bf24f9034c404c1e68a9737d65d8df Mon Sep 17 00:00:00 2001 From: James Troup Date: Tue, 14 Oct 2003 19:24:13 +0000 Subject: [PATCH] Ensure the .changes file has a non-empty Files field. --- jennifer | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jennifer b/jennifer index 13275258..a88d3e5d 100755 --- a/jennifer +++ b/jennifer @@ -2,7 +2,7 @@ # Checks Debian packages from Incoming # Copyright (C) 2000, 2001, 2002, 2003 James Troup -# $Id: jennifer,v 1.39 2003-10-14 19:16:16 troup Exp $ +# $Id: jennifer,v 1.40 2003-10-14 19:24:13 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_valid_pkg_name = re.compile(r"^[\dA-Za-z][\dA-Za-z\+\-\.]+$"); ################################################################################ # Globals -jennifer_version = "$Revision: 1.39 $"; +jennifer_version = "$Revision: 1.40 $"; Cnf = None; Options = None; @@ -243,6 +243,11 @@ def check_changes(): if os.path.exists(Cnf["Dir::Queue::%s" % (dir) ]+'/'+base_filename): reject("%s: a file with this name already exists in the %s directory." % (base_filename, dir)); + # Check the .changes is non-empty + if not files: + reject("%s: nothing to do (Files field is empty)." % (base_filename)) + return 0; + return 1; ################################################################################ -- 2.39.5