Change in osmo-ci[master]: osmocom-latest-packages: Allow non-osmocom git URL in checkout()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Feb 26 13:47:55 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/17273 )


Change subject: osmocom-latest-packages: Allow non-osmocom git URL in checkout()
......................................................................

osmocom-latest-packages: Allow non-osmocom git URL in checkout()

Change-Id: I33bbc47598cb2c31cdc4209cd2fe3e6f6dd67e7a
---
M scripts/osmocom-latest-packages.sh
1 file changed, 9 insertions(+), 11 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/73/17273/1

diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh
index bcc3067..fc00f30 100755
--- a/scripts/osmocom-latest-packages.sh
+++ b/scripts/osmocom-latest-packages.sh
@@ -48,19 +48,17 @@
 
 checkout() {
   project=$1
+  url=$2
   gitbpargs=""
+
+  if [ -z "$url" ]; then
+    url="$(osmo_git_clone_url "$project")"
+  fi
+
   echo
   echo "====> Checking out $project"
   cd "$TOP"
-  if [ "$project" = "limesuite" ]; then
-     [ -d "$project" ] || git clone "https://github.com/myriadrf/LimeSuite" "$project"
-  elif [ "$project" = "open5gs" ]; then
-    if [ ! -d "$project" ]; then
-      git clone "https://github.com/open5gs/open5gs" "$project"
-    fi
-  else
-    [ -d "$project" ] || osmo_git_clone_date "$(osmo_git_clone_url "$project")"
-  fi
+  [ -d "$project" ] || osmo_git_clone_date "$url" "$project"
   cd "$project"
   git fetch
   VER=$(get_last_tag "$project")
@@ -144,7 +142,7 @@
   prepare
 
   # NOTE: when adding a repository that is not in gerrit, adjust osmo_git_clone_url()
-  checkout limesuite
+  checkout limesuite https://github.com/myriadrf/LimeSuite
   checkout osmo-gsm-manuals
   checkout libosmocore
   checkout libosmo-sccp
@@ -171,7 +169,7 @@
   checkout libosmo-dsp
   checkout osmo-sysmon
   checkout osmo-remsim
-  checkout open5gs
+  checkout open5gs https://github.com/open5gs/open5gs
 
   checkout_copy_debian8_jessie "osmo-gsm-manuals"
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/17273
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I33bbc47598cb2c31cdc4209cd2fe3e6f6dd67e7a
Gerrit-Change-Number: 17273
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200226/a95ca0e1/attachment.htm>


More information about the gerrit-log mailing list