fixed equo update when client database does not exist

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@907 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-12-18 22:26:35 +00:00
parent 6e4628316f
commit 2b14c48427
+7 -1
View File
@@ -277,7 +277,13 @@ def syncRepositories(reponames = [], forceUpdate = False):
# tell if a new equo release is available
import equoTools
from databaseTools import openClientDatabase
clientDbconn = openClientDatabase(xcache = False)
try:
clientDbconn = openClientDatabase(xcache = False)
except exceptionTools.SystemDatabaseError:
clientDbconn.closeDB()
del clientDbconn
return 0
matches = clientDbconn.searchPackages("app-admin/equo")
if matches:
equo_match = "<="+matches[0][0]