From 2b14c48427fbeb2e2d4300aa36e981b0837789f6 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@cd1c1023-2f26-0410-ae45-c471fc1f0318> Date: Tue, 18 Dec 2007 22:26:35 +0000 Subject: [PATCH] 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 --- client/repositoriesTools.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/repositoriesTools.py b/client/repositoriesTools.py index 8b1198394..4be9f5e05 100644 --- a/client/repositoriesTools.py +++ b/client/repositoriesTools.py @@ -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]