summaryrefslogtreecommitdiff
path: root/morphlib/cachedrepo.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-05-09 16:02:41 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-05-09 16:02:41 +0100
commit8b570c96bd9fe04621e812f2974be831f6cc60b7 (patch)
tree383e3ee42427a9b987f95c5a7c63f93d73e1d906 /morphlib/cachedrepo.py
parent6a091c4b3fcb7d97c9d084f3d2e602c2bbee78c5 (diff)
downloadmorph-8b570c96bd9fe04621e812f2974be831f6cc60b7.tar.gz
Fix CachedRepo exceptions to initialize correctly
Diffstat (limited to 'morphlib/cachedrepo.py')
-rw-r--r--morphlib/cachedrepo.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/morphlib/cachedrepo.py b/morphlib/cachedrepo.py
index 7d2bae4b..4c651130 100644
--- a/morphlib/cachedrepo.py
+++ b/morphlib/cachedrepo.py
@@ -24,37 +24,39 @@ import morphlib.execute
class InvalidReferenceError(cliapp.AppException):
def __init__(self, repo, ref):
- Exception.__init__(self, 'Ref %s is an invalid reference for repo %s' %
- (ref, repo))
+ cliapp.AppException.__init__(
+ self, 'Ref %s is an invalid reference for repo %s' % (ref, repo))
class UnresolvedNamedReferenceError(cliapp.AppException):
def __init__(self, repo, ref):
- Exception.__init__(self, 'Ref %s is not a SHA1 ref for repo %s' %
- (ref, repo))
+ cliapp.AppException.__init__(
+ self, 'Ref %s is not a SHA1 ref for repo %s' % (ref, repo))
class CheckoutDirectoryExistsError(cliapp.AppException):
def __init__(self, repo, target_dir):
- Exception.__init__(
- self, 'Checkout directory %s for repo %s already exists' %
+ cliapp.AppException.__init__(
+ self,
+ 'Checkout directory %s for repo %s already exists' %
(target_dir, repo))
class CheckoutError(cliapp.AppException):
def __init__(self, repo, ref, target_dir):
- Exception.__init__(self, 'Failed to check out %s:%s into %s' %
- (repo, ref, target_dir))
+ cliapp.AppException.__init__(
+ self,
+ 'Failed to check out %s:%s into %s' % (repo, ref, target_dir))
class UpdateError(cliapp.AppException):
def __init__(self, repo):
- Exception.__init__(self, 'Failed to update cached version of repo %s' %
- repo)
+ cliapp.AppException.__init__(
+ self, 'Failed to update cached version of repo %s' % repo)
class CachedRepo(object):