bzr bd first run fails: bzr: ERROR: exceptions.IndexError: string index out of range

Bug #360670 reported by gzahl
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-builddeb
Fix Released
Undecided
Unassigned

Bug Description

bzr-buildpackage
Building using working tree
bzr: ERROR: exceptions.IndexError: string index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/cmds.py", line 363, in run
    (changelog, larstiq) = find_changelog(tree, merge)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/util.py", line 117, in find_changelog
    changelog.parse_changelog(contents, max_blocks=1, allow_empty_author=True)
  File "/var/lib/python-support/python2.6/debian_bundle/changelog.py", line 296, in parse_changelog
    if file[-1] != '\n':
IndexError: string index out of range

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'builddeb']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
plugins:
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [unknown]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  xmloutput /usr/lib/python2.6/dist-packages/bzrlib/plugins/xmloutput [0.8.3]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
James Westby (james-w) wrote :

Hi,

Could you please attach your debian/changelog to the bug report?

Thanks,

James

affects: bzr → bzr-builddeb
Revision history for this message
gzahl (gzahl) wrote :

Hi,

My debian/ folder just contains an empt changelog file. I am new to bzr-buildpackage and thought it would help me to generate the debian files?

Kind Regards,
Manuel

Revision history for this message
James Westby (james-w) wrote :

Hi,

Nope, bzr-builddeb won't help you do that, you need to do that bit yourself,
or use something like dh_make.

python-debian shouldn't crash like this if the changelog is empty though,
so that should be fixed.

Thanks,

James

Revision history for this message
Muharem Hrnjadovic (al-maisan) wrote :

This is actually a fault in the 'python-debian' package; please see bug #400589.

Changed in bzr-builddeb:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.