extras-buildsys/server UserInterface.py,1.44.2.2,1.44.2.3
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Wed Aug 24 19:16:41 UTC 2005
Author: dcbw
Update of /cvs/fedora/extras-buildsys/server
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31440
Modified Files:
Tag: STABLE_0_3
UserInterface.py
Log Message:
Don't return success when we've been passed invalid job IDs.
Index: UserInterface.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/server/UserInterface.py,v
retrieving revision 1.44.2.2
retrieving revision 1.44.2.3
diff -u -r1.44.2.2 -r1.44.2.3
--- UserInterface.py 15 Aug 2005 14:33:10 -0000 1.44.2.2
+++ UserInterface.py 24 Aug 2005 19:16:39 -0000 1.44.2.3
@@ -501,14 +501,15 @@
if len(uids):
sql = 'UPDATE jobs SET status="finished" WHERE %s' % uids
-
try:
dbcx, curs = get_dbcx()
except sqlite.DatabaseError, e:
return (-1, "Unable to access job database.")
curs.execute(sql)
dbcx.commit()
- return (0, "Success.")
+ return (0, "Success.")
+
+ return (-1, "Invalid uid found.")
def api_version(self):
return XMLRPC_API_VERSION
More information about the fedora-extras-commits
mailing list