From c5617d291dc17395a9d23c757d7dc815f6eed49e Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Tue, 29 Jul 2003 14:57:03 +0000 Subject: [PATCH] two bug fixes in source_exists changes --- katie.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/katie.py b/katie.py index 198ee001..bee2c03e 100644 --- a/katie.py +++ b/katie.py @@ -2,7 +2,7 @@ # Utility functions for katie # Copyright (C) 2001, 2002, 2003 James Troup -# $Id: katie.py,v 1.35 2003-07-29 14:00:39 ajt Exp $ +# $Id: katie.py,v 1.36 2003-07-29 14:57:03 ajt 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 @@ -604,7 +604,7 @@ distribution."""; def source_exists (self, package, source_version, suites = ["any"]): okay = 1 for suite in suites: - if suites == "any": + if suite == "any": que = "SELECT s.version FROM source s WHERE s.source = '%s'" % \ (package) else: @@ -631,6 +631,7 @@ distribution."""; # No source found... okay = 0 + return okay ################################################################################ -- 2.39.2