Merge lp:~jelmer/bzr-builddeb/build-type-enum into lp:bzr-builddeb
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Approved by: | Jelmer Vernooij |
Approved revision: | 489 |
Merge reported by: | Jelmer Vernooij |
Merged at revision: | not available |
Proposed branch: | lp:~jelmer/bzr-builddeb/build-type-enum |
Merge into: | lp:bzr-builddeb |
Diff against target: |
291 lines (+85/-42) 5 files modified
__init__.py (+2/-1) cmds.py (+54/-38) config.py (+17/-0) tests/test_config.py (+7/-1) util.py (+5/-2) |
To merge this branch: | bzr merge lp:~jelmer/bzr-builddeb/build-type-enum |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Bzr-builddeb-hackers | Pending | ||
Review via email:
|
Description of the change
This changes bzr-builddeb to use a "build_type" enum internally, rather than a tuple with three booleans ("split", "merge", "native").
This simplifies the code a bit, it makes the automatic detection of native packages better (looks at the debian revision if there was a previous upload for this distroseries) and should make it easier to fix bug 586617.
To post a comment you must log in.
208 +BUILD_TYPE_NORMAL = 0
209 +BUILD_TYPE_NATIVE = 1
210 +BUILD_TYPE_MERGE = 2
211 +BUILD_TYPE_SPLIT = 3
In my experience it's nicer to use string constants for enums (e.g. 'NORMAL') rather than integers. This makes debugging much more pleasant.