From: James Troup Date: Tue, 15 Jul 2003 17:29:22 +0000 (+0000) Subject: Protect against 'what orig.tar.gz?' brain damage of katie.check_dsc_against_db() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=711a3b8e78e09ea4c2de077a694dbac8a02cd715;p=dak Protect against 'what orig.tar.gz?' brain damage of katie.check_dsc_against_db() --- diff --git a/kelly b/kelly index d1005702..0afc8357 100755 --- a/kelly +++ b/kelly @@ -2,7 +2,7 @@ # Installs Debian packages # Copyright (C) 2000, 2001, 2002, 2003 James Troup -# $Id: kelly,v 1.8 2003-03-14 19:06:02 troup Exp $ +# $Id: kelly,v 1.9 2003-07-15 17:29: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 @@ -39,7 +39,7 @@ import db_access, katie, logging, utils; ############################################################################### # Globals -kelly_version = "$Revision: 1.8 $"; +kelly_version = "$Revision: 1.9 $"; Cnf = None; Options = None; @@ -110,6 +110,10 @@ def reject (str, prefix="Rejected: "): def check(): for file in files.keys(): + # The .orig.tar.gz can disappear out from under us is it's a + # duplicate of one in the archive. + if not files.has_key(file): + continue; # Check that the source still exists if files[file]["type"] == "deb": source_version = files[file]["source version"];