~ubuntu-branches/debian/sid/bzr-builddeb/sid

« back to all changes in this revision

Viewing changes to errors.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij, Jelmer Vernooij, Jonathan Riddell, Scott Kitterman
  • Date: 2011-07-15 12:15:22 UTC
  • Revision ID: james.westby@ubuntu.com-20110715121522-avtc0uc3uuzcg7zn
Tags: 2.7.5
[ Jelmer Vernooij ]
* New 'bzr dep3-patch' subcommand that can generate DEP-3 compliant
  patches. LP: #460576

[ Jonathan Riddell ]
* Use new set_commit_message() hook in bzr to set the commit
  message from debian/changelog and set fixed bugs in tags. LP: #707274

[ Jelmer Vernooij ]
* Add dependency on devscripts >= 2.10.59, required now that 'dch --
  package' is used. LP: #783122
* Fix support for native packages with dashes in their version in
  sources.list. LP: #796853
* Fix deprecation warnings for TestCase.failUnlessExists and
  TestCase.failIfExists in bzr 2.4.

[ Scott Kitterman ]
* Delete debian/bzr-builddeb.dirs so the long obsolete and empty
  /usr/lib/python2.4/site-packages/bzrlib/plugins/bzr-builddeb/ is no
  longer created. Closes: #631564

[ Jelmer Vernooij ]
* Add support for xz and lzma tarballs. LP: #553668
* When importing upstream component tarballs, don't repack bz2/lzma
  tarballs to gz if the package is in v3 source format. LP: #810531

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
 
36
36
class MissingUpstreamTarball(BzrError):
37
 
    _fmt = "Unable to find the needed upstream tarball: %(tarball_name)s."
 
37
    _fmt = ("Unable to find the needed upstream tarball for package %(package)s, "
 
38
            "version %(version)s.")
38
39
 
39
 
    def __init__(self, tarball_name):
40
 
        BzrError.__init__(self, tarball_name=tarball_name)
 
40
    def __init__(self, package, version):
 
41
        BzrError.__init__(self, package=package, version=version)
41
42
 
42
43
 
43
44
class TarFailed(BzrError):
163
164
        BzrError.__init__(self, location=location)
164
165
 
165
166
 
166
 
class PristineTarError(BzrError):
167
 
    _fmt = 'There was an error using pristine-tar: %(error)s.'
168
 
 
169
 
    def __init__(self, error):
170
 
        BzrError.__init__(self, error=error)
171
 
 
172
 
 
173
167
class SharedUpstreamConflictsWithTargetPackaging(BzrError):
174
168
    _fmt = ('The upstream branches for the merge source and target have '
175
169
            'diverged. Unfortunately, the attempt to fix this problem '
224
218
 
225
219
    _fmt = ("Build refused because there are unknown files in the tree. "
226
220
            "To list all known files, run 'bzr unknowns'.")
 
221
 
 
222
 
 
223
class DchError(BzrError):
 
224
    _fmt = 'There was an error using dch: %(error)s.'
 
225
 
 
226
    def __init__(self, error):
 
227
        BzrError.__init__(self, error=error)
 
228
 
 
229
 
 
230
class MultipleUpstreamTarballsNotSupported(BzrError):
 
231
 
 
232
    _fmt = ("Importing packages using source format 3.0 multiple tarballs "
 
233
            "is not yet supported.")