Merge lp:~rexbron/bzr-builddeb/trunk.profiles into lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old
| Status: | Work in progress | ||||
|---|---|---|---|---|---|
| Proposed branch: | lp:~rexbron/bzr-builddeb/trunk.profiles | ||||
| Merge into: | lp:~bzr-builddeb-hackers/bzr-builddeb/trunk-old | ||||
| To merge this branch: | bzr merge lp:~rexbron/bzr-builddeb/trunk.profiles | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| James Westby | 2008-12-24 | Needs Fixing on 2009-01-03 | |
|
Review via email:
|
|||
| Andrew Hunter (rexbron) wrote : | # |
- 305. By Andrew Hunter on 2008-12-27
-
Fixed bug caused by if/else indentation errors.
- 306. By Andrew Hunter on 2008-12-27
-
Removed useless info().
| James Westby (james-w) wrote : | # |
Hi,
Thanks for working on this, apologies for the delay in reviewing it.
The change looks small and un-obtrusive, I just have a question about
the config file format. You went for
[revu]
profile-builder = "foo"
I think this should be
[revu]
builder = "foo"
However I was expecting
[PROFILES]
revu = "foo"
ppa = "bar"
etc.
Your way obviously allows us to define other things for a profile, but I am
struggling to think of what that might be. Do you have any examples?
Also, what do you think about case-sensitivity. I think the profile names should
be case-insensitive, but that is obviously not that easy to accomplish. How
important do you think that is?
Thanks,
James
| Andrew Hunter (rexbron) wrote : | # |
Two reasons that I went with the config file format that I did, the first was namespace conflicts. I wanted to be certain, as I do not fully understand how this config system works, that I would not be interfering or causing unintentional changes. Secondly, as you mention, it might be possible in the future that we wish to add other options to a profile but I do not have any explicit examples at this point.
Making profile names case insensitive depends on how the config system works when it parses the config file. I have done some work on managing config files from python (see ubuntustudio-
| James Westby (james-w) wrote : | # |
Hi,
Sorry for the delay, I merged your branch with trunk and made some
tweaks:
https:/
though I realise I forgot to change README.
I'm quite happy that the change is small. My remaining concern is
just utility vs. maintainence burden. I want to be sure that this
solves a use case well enough that it's worth the effort of maintaining
it. If you can explain what you want to use it for that will help.
Thanks,
James
Unmerged revisions
- 306. By Andrew Hunter on 2008-12-27
-
Removed useless info().
- 305. By Andrew Hunter on 2008-12-27
-
Fixed bug caused by if/else indentation errors.
- 304. By Andrew Hunter on 2008-12-24
-
Fixed typo and added profile shortname to help message.
- 303. By Andrew Hunter on 2008-12-23
-
Added test to make sure profile name gets pulled correctly.
- 302. By Andrew Hunter on 2008-12-23
-
Catch bad profile name exception.
- 301. By Andrew Hunter on 2008-12-23
-
Fixed typo
- 300. By Andrew Hunter on 2008-12-23
-
Added builder-profile section to README and added short name for profile.
- 299. By Andrew Hunter on 2008-12-23
-
Added a method to specify builder profiles in conf files.

Adds support for profiles in bzr-builddeb. Profiles are stored groups of settings, callable from the command line. This is useful when multiple builder strings are required depending on the destination.