From: James Troup Date: Tue, 16 Apr 2002 17:08:15 +0000 (+0000) Subject: make upload_too_new actually work X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1be9703bec0e81d1d4b2ac35994f2cc3f1aee263;p=dak.git make upload_too_new actually work --- diff --git a/jennifer b/jennifer index 5c9c1e21..1ea3db5f 100755 --- a/jennifer +++ b/jennifer @@ -2,7 +2,7 @@ # Checks Debian packages from Incoming # Copyright (C) 2000, 2001 James Troup -# $Id: jennifer,v 1.11 2002-04-16 14:46:56 troup Exp $ +# $Id: jennifer,v 1.12 2002-04-16 17:08:15 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 @@ -44,7 +44,7 @@ re_is_changes = re.compile (r"(.+?)_(.+?)_(.+?)\.changes$"); ################################################################################ # Globals -jennifer_version = "$Revision: 1.11 $"; +jennifer_version = "$Revision: 1.12 $"; Cnf = None; Options = None; @@ -883,7 +883,7 @@ def upload_too_new(): file_list.append(pkg.changes_file); for file in file_list: try: - last_modified = time.time()-os.path.getmtime(pkg.changes_file); + last_modified = time.time()-os.path.getmtime(file); if last_modified < int(Cnf["Dinstall::SkipTime"]): return 1; except: