Merge lp:~jelmer/bzr-builddeb/get-source-format into lp:bzr-builddeb
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Approved by: | James Westby |
Approved revision: | 583 |
Merged at revision: | 582 |
Proposed branch: | lp:~jelmer/bzr-builddeb/get-source-format |
Merge into: | lp:bzr-builddeb |
Diff against target: |
34 lines (+10/-2) 2 files modified
tests/test_util.py (+6/-0) util.py (+4/-2) |
To merge this branch: | bzr merge lp:~jelmer/bzr-builddeb/get-source-format |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bzr-builddeb-hackers | Pending | ||
Review via email: mp+68090@code.launchpad.net |
Description of the change
Fix the use of get_source_format when debian/
To post a comment you must log in.
On Fri, 15 Jul 2011 14:20:03 -0000, Jelmer Vernooij <email address hidden> wrote: filename( "debian/ source/ format" ): file_text( tree.path2id( "debian/ source/ format" )).strip( ) file_text( tree.path2id( "debian/ source/ format" ), source/ format" )
> if not tree.has_
> return FORMAT_1_0
> - return tree.get_
> + text = tree.get_
> + "debian/
> + return text.strip()
Looks good, but perhaps we could make all those magic strings one
variable?
Thanks,
James