From c3d5bbef4d0e11bab1d85058dbbb18f0d1949947 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 5 Mar 2011 12:15:16 +0100 Subject: [PATCH] [entropy.exceptions] introduce RepositoryLocked exception, raised (and never caught) if EntropyRepository repository data structures are exclusively locked --- libraries/entropy/exceptions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/entropy/exceptions.py b/libraries/entropy/exceptions.py index 7c36f048e..86034acc4 100644 --- a/libraries/entropy/exceptions.py +++ b/libraries/entropy/exceptions.py @@ -66,6 +66,9 @@ class DependenciesNotRemovable(EntropyException): class RepositoryError(EntropyException): """Cannot open repository database""" +class RepositoryLocked(RepositoryError): + """ Repository is locked by an exclusive lock """ + class RepositoryPluginError(EntropyException): """Error during EntropyRepositoryPlugin hook execution"""