<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/15117">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo-release.sh: Check patches under debian/patches apply<br><br>Change-Id: I614080361f3cc5bfb89994a8e8e36981529cd439<br>---<br>M osmo-release.sh<br>1 file changed, 17 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/17/15117/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/osmo-release.sh b/osmo-release.sh</span><br><span>index 38f238d..a779a26 100755</span><br><span>--- a/osmo-release.sh</span><br><span>+++ b/osmo-release.sh</span><br><span>@@ -61,6 +61,22 @@</span><br><span>    echo "OK: dependency specific versions in configure.ac and debian/control match"</span><br><span> }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+# Make sure that patches under debian/patches/ apply:</span><br><span style="color: hsl(120, 100%, 40%);">+check_debian_patch_apply() {</span><br><span style="color: hsl(120, 100%, 40%);">+      if [ ! -d "${GIT_TOPDIR}/debian/patches" ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+            return</span><br><span style="color: hsl(120, 100%, 40%);">+        fi</span><br><span style="color: hsl(120, 100%, 40%);">+    for patch in ${GIT_TOPDIR}/debian/patches/*.patch; do</span><br><span style="color: hsl(120, 100%, 40%);">+         git apply --check $patch</span><br><span style="color: hsl(120, 100%, 40%);">+              if [ $? -ne 0 ]; then</span><br><span style="color: hsl(120, 100%, 40%);">+                 echo "ERROR: patch no longer applies! $patch"</span><br><span style="color: hsl(120, 100%, 40%);">+                       exit 1</span><br><span style="color: hsl(120, 100%, 40%);">+                else</span><br><span style="color: hsl(120, 100%, 40%);">+                  echo "OK: patch applies: $patch"</span><br><span style="color: hsl(120, 100%, 40%);">+            fi</span><br><span style="color: hsl(120, 100%, 40%);">+    done</span><br><span style="color: hsl(120, 100%, 40%);">+}</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> BUMPVER=`command -v bumpversion`</span><br><span> GIT_TOPDIR="$(git rev-parse --show-toplevel)"</span><br><span> NEW_VER=`bumpversion --list --current-version $VERSION $REL --allow-dirty | awk -F '=' '{ print $2 }'`</span><br><span>@@ -81,6 +97,7 @@</span><br><span> echo "Releasing $VERSION -> $NEW_VER..."</span><br><span> </span><br><span> check_configureac_debctrl_deps_match</span><br><span style="color: hsl(120, 100%, 40%);">+check_debian_patch_apply</span><br><span> </span><br><span> if [ "z$LIBVERS" != "z" ]; then</span><br><span>     if [ "z$MAKEMOD" = "z" ] && [ "z$ALLOW_NO_LIBVERSION_CHANGE" = "z0" ]; then</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/15117">change 15117</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/libosmocore/+/15117"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I614080361f3cc5bfb89994a8e8e36981529cd439 </div>
<div style="display:none"> Gerrit-Change-Number: 15117 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>