From: James Troup Date: Tue, 14 Oct 2003 19:24:13 +0000 (+0000) Subject: Ensure the .changes file has a non-empty Files field. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2e29655f59bf24f9034c404c1e68a9737d65d8df;p=dak.git Ensure the .changes file has a non-empty Files field. --- 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; ################################################################################