提交 c5617d29 编写于 作者: A Anthony Towns

two bug fixes in source_exists changes

上级 2d5a6519
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Utility functions for katie # Utility functions for katie
# Copyright (C) 2001, 2002, 2003 James Troup <james@nocrew.org> # Copyright (C) 2001, 2002, 2003 James Troup <james@nocrew.org>
# $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 # 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 # it under the terms of the GNU General Public License as published by
...@@ -604,7 +604,7 @@ distribution."""; ...@@ -604,7 +604,7 @@ distribution.""";
def source_exists (self, package, source_version, suites = ["any"]): def source_exists (self, package, source_version, suites = ["any"]):
okay = 1 okay = 1
for suite in suites: for suite in suites:
if suites == "any": if suite == "any":
que = "SELECT s.version FROM source s WHERE s.source = '%s'" % \ que = "SELECT s.version FROM source s WHERE s.source = '%s'" % \
(package) (package)
else: else:
...@@ -631,6 +631,7 @@ distribution."""; ...@@ -631,6 +631,7 @@ distribution.""";
# No source found... # No source found...
okay = 0 okay = 0
return okay
################################################################################ ################################################################################
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册