/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/errors.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-07-04 21:44:36 UTC
  • mfrom: (6728.1.3 move-gpg)
  • Revision ID: breezy.the.bot@gmail.com-20170704214436-evf0ycv5n7cfqxq9
Switch to using python-gpg (part of gpgme) rather than deprecated python-gpgme.

Merged from https://code.launchpad.net/~jelmer/brz/gpg/+merge/326815

Show diffs side-by-side

added added

removed removed

Lines of Context:
1771
1771
        self.username = username
1772
1772
 
1773
1773
 
1774
 
class SigningFailed(BzrError):
1775
 
 
1776
 
    _fmt = 'Failed to GPG sign data with command "%(command_line)s"'
1777
 
 
1778
 
    def __init__(self, command_line):
1779
 
        BzrError.__init__(self, command_line=command_line)
1780
 
 
1781
 
 
1782
 
class SignatureVerificationFailed(BzrError):
1783
 
 
1784
 
    _fmt = 'Failed to verify GPG signature data with error "%(error)s"'
1785
 
 
1786
 
    def __init__(self, error):
1787
 
        BzrError.__init__(self, error=error)
1788
 
 
1789
 
 
1790
1774
class DependencyNotPresent(BzrError):
1791
1775
 
1792
1776
    _fmt = 'Unable to import library "%(library)s": %(error)s'
1795
1779
        BzrError.__init__(self, library=library, error=error)
1796
1780
 
1797
1781
 
1798
 
class GpgmeNotInstalled(DependencyNotPresent):
1799
 
 
1800
 
    _fmt = 'python-gpgme is not installed, it is needed to verify signatures'
1801
 
 
1802
 
    def __init__(self, error):
1803
 
        DependencyNotPresent.__init__(self, 'gpgme', error)
1804
 
 
1805
 
 
1806
1782
class WorkingTreeNotRevision(BzrError):
1807
1783
 
1808
1784
    _fmt = ("The working tree for %(basedir)s has changed since"