Merge lp:~cjwatson/bzr-builddeb/missing-format into lp:bzr-builddeb

Proposed by Colin Watson
Status: Merged
Merged at revision: not available
Proposed branch: lp:~cjwatson/bzr-builddeb/missing-format
Merge into: lp:bzr-builddeb
Diff against target: 12 lines (+1/-1)
1 file modified
import_dsc.py (+1/-1)
To merge this branch: bzr merge lp:~cjwatson/bzr-builddeb/missing-format
Reviewer Review Type Date Requested Status
Jelmer Vernooij code Approve
Review via email: mp+21437@code.launchpad.net

Description of the change

Treat missing Format field as 1.0.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'import_dsc.py'
2--- import_dsc.py 2010-03-01 08:23:33 +0000
3+++ import_dsc.py 2010-03-16 10:49:18 +0000
4@@ -1235,7 +1235,7 @@
5 base_path = osutils.dirname(dsc_filename)
6 dsc = deb822.Dsc(open(dsc_filename).read())
7 version = Version(dsc['Version'])
8- format = dsc['Format'].strip()
9+ format = dsc.get('Format', '1.0').strip()
10 extractor_cls = SOURCE_EXTRACTORS.get(format)
11 if extractor_cls is None:
12 raise AssertionError("Don't know how to import source format %s yet"

Subscribers

People subscribed via source and target branches