Skip to main content

Source code Changes To

pkg-gate / src / modules / client / api_errors.py

From revision 2973 to 2974:

diff -r 8c4b7bd87647 -r 753adc11f1a6 src/modules/client/api_errors.py
--- a/src/modules/client/api_errors.py	Tue Oct 29 09:27:00 2013 -0700
+++ b/src/modules/client/api_errors.py	Wed Oct 30 21:19:02 2013 -0700
@@ -406,6 +406,17 @@
                         "filesystem.")
 
 
+class InvalidLockException(ApiException):
+        def __init__(self, path):
+                ApiException.__init__(self)
+                self.path = path
+
+        def __str__(self):
+                return _("Unable to obtain or operate on lock at %s.\n"
+                    "Please try the operation again as a privileged user.") \
+                    % self.path
+
+
 class PackageMatchErrors(ApiException):
         """Used to indicate which patterns were not matched or illegal during
         a package name matching operation."""

 
 
Close
loading
Please Confirm
Close