<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10399">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmocom-latest-packages: Fix libusrp and other non-osmocom builds<br><br>We're using the build() function not only to build osmocom projects<br>requiring a .tarball-version file, but also other projects such as<br>libusrp.  Let's make the related git-buildpackage arguments conditional<br>to whether or not a .tarball-version file exists at all.<br><br>Change-Id: I0683cff036a240b1b819f91fbd230d5f9211074c<br>---<br>M scripts/osmocom-latest-packages.sh<br>1 file changed, 9 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/99/10399/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/scripts/osmocom-latest-packages.sh b/scripts/osmocom-latest-packages.sh</span><br><span>index 1d122aa..83ab084 100755</span><br><span>--- a/scripts/osmocom-latest-packages.sh</span><br><span>+++ b/scripts/osmocom-latest-packages.sh</span><br><span>@@ -34,10 +34,15 @@</span><br><span>   git fetch</span><br><span>   VER=$(git tag -l --sort=v:refname | grep "^[0-9]*.[0-9]*.[0-9]*$" | tail -n 1)</span><br><span>   git checkout -f -B "$VER" "refs/tags/$VER"</span><br><span style="color: hsl(0, 100%, 40%);">-  test -x ./git-version-gen && ./git-version-gen . > .tarball-version 2>/dev/null</span><br><span style="color: hsl(0, 100%, 40%);">-  gbp buildpackage -d -S -uc -us "--git-export-dir=$output" "--git-debian-branch=$VER" \</span><br><span style="color: hsl(0, 100%, 40%);">-               --git-ignore-new \</span><br><span style="color: hsl(0, 100%, 40%);">-              --git-postexport='cp $GBP_GIT_DIR/../.tarball-version $GBP_TMP_DIR/'</span><br><span style="color: hsl(120, 100%, 40%);">+  if [ -x ./git-version-gen ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+    ./git-version-gen . > .tarball-version 2>/dev/null</span><br><span style="color: hsl(120, 100%, 40%);">+    gbp buildpackage -S -uc -us -d --git-ignore-branch "--git-export-dir=$output" \</span><br><span style="color: hsl(120, 100%, 40%);">+                  "--git-debian-branch=$VER" --git-ignore-new \</span><br><span style="color: hsl(120, 100%, 40%);">+               --git-postexport='cp $GBP_GIT_DIR/../.tarball-version $GBP_TMP_DIR/'</span><br><span style="color: hsl(120, 100%, 40%);">+  else</span><br><span style="color: hsl(120, 100%, 40%);">+    gbp buildpackage -S -uc -us -d --git-ignore-branch "--git-export-dir=$output" \</span><br><span style="color: hsl(120, 100%, 40%);">+                   "--git-debian-branch=$VER" --git-ignore-new</span><br><span style="color: hsl(120, 100%, 40%);">+  fi</span><br><span> </span><br><span>   if [ ! -d "$TOP/$PROJ/$1" ] ; then</span><br><span>     # creating a new package is different from using old ones</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10399">change 10399</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10399"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I0683cff036a240b1b819f91fbd230d5f9211074c </div>
<div style="display:none"> Gerrit-Change-Number: 10399 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>