Merge ~tintou/git-build-recipe:master into git-build-recipe:master
Status: | Needs review |
---|---|
Proposed branch: | ~tintou/git-build-recipe:master |
Merge into: | git-build-recipe:master |
Diff against target: |
230 lines (+92/-25) 2 files modified
gitbuildrecipe/recipe.py (+55/-19) gitbuildrecipe/tests/test_recipe.py (+37/-6) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Needs Fixing | ||
Review via email: mp+351699@code.staging.launchpad.net |
Commit message
Handle submodules
It is possible to fetch the submodules before building the package by specifying submodule-strategy {normal, recursive} in the header of the recipe
The default behavior is not changed
Description of the change
I had to refactor the handling of the `deb-version` optional variable as there are now two optional variables.
by default, there is no additional command run, if the submodule strategy is changed then the repository is synced and updated (the behavior is inspired from what is described in https:/
I haven't tested it on a real repository though.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
Most of these are nits, but I'd really prefer to have end-to-end functional tests before merging this (although I've tested it locally and it does seem to work fine).