From be8eed59177f1a26074b899d771fbfdc5e398092 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 8 Jun 2004 20:28:26 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3511 --- tools/update_versions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/update_versions b/tools/update_versions index 0693dd1c03..05d3649ff8 100755 --- a/tools/update_versions +++ b/tools/update_versions @@ -39,6 +39,10 @@ import sys, os, re, time def get_current_core_version(): cursor = database.get_dbconnection().cursor() cursor.execute('select max(version_num) from core_version') + x = cursor.fetchall()[0].values()[0] + print 'len', x + if x == None: + return 0 return int(cursor.fetchall()[0].values()[0]) verbose = 0