<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ci/+/18441">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">OBS: support more than one conflicting package<br><br>For the upcoming network:osmocom:next repository, it would be<br>inconsistent to have the debian package conflict mechanism only support<br>latest and nightly, even if the next repository is currently not built<br>for debian.<br><br>Change-Id: I2c07313fbbdffe5571e447059b08fe74c853cef0<br>---<br>M scripts/common-obs.sh<br>1 file changed, 9 insertions(+), 5 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/41/18441/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/scripts/common-obs.sh b/scripts/common-obs.sh</span><br><span>index 137887b..ad62a65 100644</span><br><span>--- a/scripts/common-obs.sh</span><br><span>+++ b/scripts/common-obs.sh</span><br><span>@@ -26,10 +26,10 @@</span><br><span> #     └── source</span><br><span> #         └── format</span><br><span> # $1: name of dummy package (e.g. "osmocom-nightly")</span><br><span style="color: hsl(0, 100%, 40%);">-# $2: name of conflicting package (e.g. "osmocom-latest")</span><br><span style="color: hsl(120, 100%, 40%);">+# $2-*: name of conflicting packages (e.g. "osmocom-latest")</span><br><span> osmo_obs_prepare_conflict() {</span><br><span>    local pkgname="$1"</span><br><span style="color: hsl(0, 100%, 40%);">-    local pkgname_conflict="$2"</span><br><span style="color: hsl(120, 100%, 40%);">+ shift 2</span><br><span>      local pkgver="0.0.0"</span><br><span>       local oldpwd="$PWD"</span><br><span> </span><br><span>@@ -48,13 +48,17 @@</span><br><span> Package: ${pkgname}</span><br><span> Depends: \${misc:Depends}</span><br><span> Architecture: any</span><br><span style="color: hsl(0, 100%, 40%);">-Conflicts: ${pkgname_conflict}</span><br><span style="color: hsl(0, 100%, 40%);">-Description: Dummy package, which conflicts with ${pkgname_conflict}</span><br><span style="color: hsl(120, 100%, 40%);">+EOF</span><br><span style="color: hsl(120, 100%, 40%);">+       for i in "$@"; do</span><br><span style="color: hsl(120, 100%, 40%);">+           echo "Conflicts: $i" >> control</span><br><span style="color: hsl(120, 100%, 40%);">+       done</span><br><span style="color: hsl(120, 100%, 40%);">+  cat << EOF >> control</span><br><span style="color: hsl(120, 100%, 40%);">+Description: Dummy package, which conflicts with: $@</span><br><span> EOF</span><br><span>       cat << EOF > changelog</span><br><span> ${pkgname} (${pkgver}) unstable; urgency=medium</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  * Dummy package, which conflicts with ${pkgname_conflict}.</span><br><span style="color: hsl(120, 100%, 40%);">+  * Dummy package, which conflicts with: $@</span><br><span> </span><br><span>  -- Oliver Smith <osmith@sysmocom.de>  Thu, 13 Jun 2019 12:50:19 +0200</span><br><span> EOF</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ci/+/18441">change 18441</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/+/18441"/><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: I2c07313fbbdffe5571e447059b08fe74c853cef0 </div>
<div style="display:none"> Gerrit-Change-Number: 18441 </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>