*** empty log message ***

svn path=/trunk/boinc/; revision=2566
This commit is contained in:
Karl Chen 2003-10-26 06:43:47 +00:00
parent 33791e38ef
commit 3b189fb47b
2 changed files with 18 additions and 2 deletions

View File

@ -7083,3 +7083,10 @@ David 25 Oct 2003
windows_opengl.C windows_opengl.C
client/ client/
scheduler_op.C scheduler_op.C
Karl 2003-10-25
- updated_versions: don't be so verbose unless "-v" verbose command-line
option is given
tools/
update_versions

View File

@ -24,6 +24,13 @@ import boinc_path_config
from Boinc import database, db_mid, configxml, tools from Boinc import database, db_mid, configxml, tools
import sys, os, glob, re, time import sys, os, glob, re, time
verbose = 0
try:
if sys.argv[1] == '-v':
verbose = 1
except:
pass
config = configxml.default_config().config config = configxml.default_config().config
database.connect() database.connect()
@ -71,6 +78,7 @@ def find_versions(app, dir):
if app: if app:
existing_versions = database.AppVersions.find(app=app, platform=platform, version_num=version_num) existing_versions = database.AppVersions.find(app=app, platform=platform, version_num=version_num)
if existing_versions: if existing_versions:
if verbose:
print " Skipping existing %s %3d: %s" %(app.name, version_num, file) print " Skipping existing %s %3d: %s" %(app.name, version_num, file)
continue continue
@ -89,6 +97,7 @@ def find_versions(app, dir):
else: else:
existing_versions = database.CoreVersions.find(platform=platform, version_num=version_num) existing_versions = database.CoreVersions.find(platform=platform, version_num=version_num)
if existing_versions: if existing_versions:
if verbose:
print " Skipping existing core version %s: %s" %(version_num, file) print " Skipping existing core version %s: %s" %(version_num, file)
continue continue