Commit be0a0110 authored by Guido Gunther's avatar Guido Gunther
Browse files

Allow to skip submodule updates

We usually want submodule updates for embedded projects but sometimes we
have all the dependencies packaged (e.g. in the mfgtools case). Since
we want to perform the same build as on the PureOS buildds we don't want
to update submodules in this case.
parent 408455bb
......@@ -53,6 +53,7 @@ pkgs.each { pkg ->
name = folder + '/' + 'deb-' + pkg.key + '-' + dist + '-' + arch
branch = params.get('branch', os + '/' + dist)
aptly_repo = params.get('repo', default_repo)
submodule_update = params.get('submodule_update', true)
if (native_archs.contains(arch)) {
arch_arg = ''
......@@ -61,6 +62,12 @@ pkgs.each { pkg ->
}
dist_arg = '--git-dist=' + dist
if (submodule_update) {
submodule_update_cmd = "git submodule update --init --recursive"
} else {
submodule_update_cmd = ""
}
// Only build source and arch all on the primary architecture
if (arch != primary_arch) {
dpkg_args = '-B'
......@@ -72,7 +79,7 @@ pkgs.each { pkg ->
build_cmd = """rm -f *.deb *.changes *.dsc
cd build
git submodule update --init --recursive
${submodule_update_cmd}
git clean -dfx
git checkout -f
gbp dch -S -a --ignore-branch
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment