<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ci/+/22214">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">OBS: conflict: move _deb to separate function<br><br>Prepare to add the _rpm function by moving the debian code to its own<br>function and tweaking the comment above the function.<br><br>Related: OS#4733<br>Change-Id: Ic8d55c432c6035e7ac855cf6869d2c86ace468df<br>---<br>M scripts/common-obs-conflict.sh<br>1 file changed, 21 insertions(+), 12 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/14/22214/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/scripts/common-obs-conflict.sh b/scripts/common-obs-conflict.sh</span><br><span>index a3cde36..57679c3 100644</span><br><span>--- a/scripts/common-obs-conflict.sh</span><br><span>+++ b/scripts/common-obs-conflict.sh</span><br><span>@@ -2,20 +2,22 @@</span><br><span> # Create conflicting dummy packages in OBS (opensuse build service), so users can't mix packages</span><br><span> # built from different branches by accident</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-# Create the source for a dummy package, that conflicts with another dummy package in the current</span><br><span style="color: hsl(0, 100%, 40%);">-# directory. Example of the structure that will be generated:</span><br><span style="color: hsl(0, 100%, 40%);">-# osmocom-nightly</span><br><span style="color: hsl(0, 100%, 40%);">-# └── debian</span><br><span style="color: hsl(0, 100%, 40%);">-#     ├── changelog</span><br><span style="color: hsl(0, 100%, 40%);">-#     ├── compat</span><br><span style="color: hsl(0, 100%, 40%);">-#     ├── control</span><br><span style="color: hsl(0, 100%, 40%);">-#     ├── copyright</span><br><span style="color: hsl(0, 100%, 40%);">-#     ├── rules</span><br><span style="color: hsl(0, 100%, 40%);">-#     └── source</span><br><span style="color: hsl(0, 100%, 40%);">-#         └── format</span><br><span style="color: hsl(120, 100%, 40%);">+# Create the conflicting package for debian</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span> # $1: name of dummy package (e.g. "osmocom-nightly")</span><br><span> # $2-*: name of conflicting packages (e.g. "osmocom-latest")</span><br><span style="color: hsl(0, 100%, 40%);">-osmo_obs_prepare_conflict() {</span><br><span style="color: hsl(120, 100%, 40%);">+#</span><br><span style="color: hsl(120, 100%, 40%);">+# Generates the following directory structure:</span><br><span style="color: hsl(120, 100%, 40%);">+#   osmocom-nightly</span><br><span style="color: hsl(120, 100%, 40%);">+#   └── debian</span><br><span style="color: hsl(120, 100%, 40%);">+#       ├── changelog</span><br><span style="color: hsl(120, 100%, 40%);">+#       ├── compat</span><br><span style="color: hsl(120, 100%, 40%);">+#       ├── control</span><br><span style="color: hsl(120, 100%, 40%);">+#       ├── copyright</span><br><span style="color: hsl(120, 100%, 40%);">+#       ├── rules</span><br><span style="color: hsl(120, 100%, 40%);">+#       └── source</span><br><span style="color: hsl(120, 100%, 40%);">+#           └── format</span><br><span style="color: hsl(120, 100%, 40%);">+osmo_obs_prepare_conflict_deb() {</span><br><span>         local pkgname="$1"</span><br><span>         shift</span><br><span>        local pkgver="0.0.0"</span><br><span>@@ -83,3 +85,10 @@</span><br><span> </span><br><span>      cd "$oldpwd"</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+# Create conflicting packages</span><br><span style="color: hsl(120, 100%, 40%);">+# $1: name of dummy package (e.g. "osmocom-nightly")</span><br><span style="color: hsl(120, 100%, 40%);">+# $2-*: name of conflicting packages (e.g. "osmocom-latest")</span><br><span style="color: hsl(120, 100%, 40%);">+osmo_obs_prepare_conflict() {</span><br><span style="color: hsl(120, 100%, 40%);">+   osmo_obs_prepare_conflict_deb "$@"</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ci/+/22214">change 22214</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/+/22214"/><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: Ic8d55c432c6035e7ac855cf6869d2c86ace468df </div>
<div style="display:none"> Gerrit-Change-Number: 22214 </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-MessageType: newchange </div>