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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user