<p>osmith <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ci/+/22332">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  laforge: Looks good to me, but someone else must approve
  pespin: Looks good to me, but someone else must approve
  osmith: Looks good to me, approved; Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">repo-install-test: download/add deb release key<br><br>Download and add the release key for the debian repository from OBS.<br>This is useful for manually testing the existing tests with a different<br>PROJ for debugging, and it will be used by a future conflict test to<br>install a second repository (e.g. nightly and latest at the same time).<br><br>Note that this is not needed for rpm, because the dnf package manager<br>automatically downloads the key if it is missing.<br><br>Related: OS#4733<br>Change-Id: I91e7a208d8f5cb50f8baa2fde0eb979aae91da8f<br>---<br>M scripts/repo-install-test/run-inside-docker.sh<br>1 file changed, 11 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/scripts/repo-install-test/run-inside-docker.sh b/scripts/repo-install-test/run-inside-docker.sh</span><br><span>index 3dd3101..652fcd1 100755</span><br><span>--- a/scripts/repo-install-test/run-inside-docker.sh</span><br><span>+++ b/scripts/repo-install-test/run-inside-docker.sh</span><br><span>@@ -67,10 +67,19 @@</span><br><span> }</span><br><span> </span><br><span> configure_osmocom_repo_debian() {</span><br><span style="color: hsl(0, 100%, 40%);">-        local http="http://download.opensuse.org/repositories/$(proj_with_slashes "$PROJ")/Debian_9.0/"</span><br><span style="color: hsl(120, 100%, 40%);">+   local obs_repo="download.opensuse.org/repositories/$(proj_with_slashes "$PROJ")/Debian_9.0/"</span><br><span style="color: hsl(120, 100%, 40%);">+      local release_key="/var/cache/apt/${PROJ}_Release.key"</span><br><span> </span><br><span>         echo "Configuring Osmocom repository"</span><br><span style="color: hsl(0, 100%, 40%);">- echo "deb $http ./" > "/etc/apt/sources.list.d/$PROJ.list"</span><br><span style="color: hsl(120, 100%, 40%);">+     echo "deb http://$obs_repo ./" > "/etc/apt/sources.list.d/$PROJ.list"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+        # Add repository key</span><br><span style="color: hsl(120, 100%, 40%);">+  if ! [ -e "$release_key" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+            apt install -y wget</span><br><span style="color: hsl(120, 100%, 40%);">+           wget -O "$release_key" "https://$obs_repo/Release.key"</span><br><span style="color: hsl(120, 100%, 40%);">+    fi</span><br><span style="color: hsl(120, 100%, 40%);">+    apt-key add "$release_key"</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>       apt-get update</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ci/+/22332">change 22332</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/c/osmo-ci/+/22332"/><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-Change-Id: I91e7a208d8f5cb50f8baa2fde0eb979aae91da8f </div>
<div style="display:none"> Gerrit-Change-Number: 22332 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>