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

Asked by Sergey "Shnatsel" Davidoff

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:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) said :
#3

Thanks William Grant, that solved my question.