osmith has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ci/+/30779 )
Change subject: obs: put git submodules into source packages
......................................................................
obs: put git submodules into source packages
We started using git submodules with osmo-trx. Adjust the obs scripts
to actually make the git submodules part of the source packages.
Note that this didn't fail in jenkins before with the rpm build
verification, as jenkins updates git submodules on its own.
Fix for:
[ 165s] Makefile.am:32: error: required directory ./osmocom-bb/src/host/trxcon does not
exist
Change-Id: I51b423f3885d6ead5c21a83bdf8ef6051dc34fe3
---
M scripts/obs/lib/git.py
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
osmith: Looks good to me, approved
diff --git a/scripts/obs/lib/git.py b/scripts/obs/lib/git.py
index 8081a54..db1509b 100644
--- a/scripts/obs/lib/git.py
+++ b/scripts/obs/lib/git.py
@@ -56,6 +56,8 @@
lib.run_cmd(["git", "checkout", "-f", branch],
cwd=repo_path)
print(f"{project}: 'git reset --hard {branch}'")
lib.run_cmd(["git", "reset", "--hard", branch],
cwd=repo_path)
+ print(f"{project}: 'git submodule update --init'")
+ lib.run_cmd(["git", "submodule", "update",
"--init"], cwd=repo_path)
def checkout_from_review(project, gerrit_id):
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ci/+/30779
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I51b423f3885d6ead5c21a83bdf8ef6051dc34fe3
Gerrit-Change-Number: 30779
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: merged