empty leading and comment lines in debian/control break source package name finding

Bug #804241 reported by Jelmer Vernooij
52
This bug affects 6 people
Affects Status Importance Assigned to Milestone
bzr-builder
Invalid
Critical
Unassigned
launchpad-buildd
Invalid
High
Jelmer Vernooij
python-debian (Debian)
Fix Released
Unknown
python-debian (Ubuntu)
Triaged
High
Unassigned

Bug Description

e.g. building gedit which has the attached control file, the following exception is raised:

bzr: ERROR: exceptions.KeyError: 'Source'

Traceback (most recent call last):
  File "/home/jelmer/src/bzr/foreign/bzrlib/commands.py", line 946, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/home/jelmer/src/bzr/foreign/bzrlib/commands.py", line 1150, in run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/foreign/bzrlib/commands.py", line 699, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/foreign/bzrlib/commands.py", line 721, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/foreign/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/foreign/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/builder/cmds.py", line 701, in run
    package = debian_source_package_name(control_path)
  File "/home/jelmer/.bazaar/plugins/builder/cmds.py", line 549, in debian_source_package_name
    return control["Source"]
  File "/usr/lib/pymodules/python2.7/debian/deb822.py", line 175, in __getitem__
    value = self.__dict[key]
KeyError: 'Source'

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.1000.2011-07-01T10:40.crash
if a bug-reporting window does not automatically appear.

https://rt.admin.canonical.com//Ticket/Display.html?id=46345

Revision history for this message
Jelmer Vernooij (jelmer) wrote :
Changed in bzr-builder:
status: New → Triaged
importance: Undecided → Critical
tags: added: affects-gnome3-daily-builds
Jelmer Vernooij (jelmer)
Changed in python-debian:
status: New → Triaged
importance: Undecided → High
Jelmer Vernooij (jelmer)
Changed in python-debian (Ubuntu):
status: New → Triaged
importance: Undecided → High
Jelmer Vernooij (jelmer)
Changed in bzr-builder:
status: Triaged → Invalid
Changed in python-debian (Debian):
status: Unknown → Fix Released
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

There is a backported version of python-debian suitable for the builders in ~canonical-bazaar's cat-proposed archive, it just needs to be rolled out.

Changed in launchpad-buildd:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
summary: - empty leading lines in debian/control break source package name finding
+ empty leading and comment lines in debian/control break source package
+ name finding
no longer affects: python-debian
tags: added: needsrt
description: updated
Revision history for this message
Robert Collins (lifeless) wrote :

Ok, so this has no developer actions needed -its just an RT at this point.

description: updated
Changed in launchpad-buildd:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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