recipe fails with "bzr: ERROR: exceptions.KeyError: 'Source'"

Asked by Sergey "Shnatsel" Davidoff on 2012-04-17

My recipe https://code.launchpad.net/~elementary-os/+recipe/elementary-os-xdg-user-dirs-patch fails with "bzr: ERROR: exceptions.KeyError: 'Source'" during source build.
What am I doing wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
William Grant
Solved:
2012-04-21
Last query:
2012-04-21
Last reply:
2012-04-18
Aaron Bentley (abentley) said : #1

There appears to be a problem parsing the debian/control file. Parsing failed to find the 'Source:' line.

I'm not sure why that is, and testing locally doesn't show a problem. I would try deleting that header about the file being autogenerated, so that "Source: xdg-user-dirs" is on the first line.

Best William Grant (wgrant) said : #2

There's a bug in the current version of python-debian that the buildds use. It doesn't parse correctly if there are comments at the start of the file.

Thanks William Grant, that solved my question.