osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/37521?usp=email )


Change subject: lib/debian: generate valid versions for strongswan
......................................................................

lib/debian: generate valid versions for strongswan

Ensure debian versions start with a number. For strongswan versions that
look like "osmo-epdg-0.1.1", adjust them to be like "0.1.1-osmo-epdg".

Fix for:
  dpkg-buildpackage: error: version number does not start with digit

Related: OS#6488
Change-Id: If535af23bca3a31f71daeade4d8b52403f7f7e17
---
M scripts/obs/lib/debian.py
1 file changed, 20 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/21/37521/1

diff --git a/scripts/obs/lib/debian.py b/scripts/obs/lib/debian.py
index efe4ff3..1e48046 100644
--- a/scripts/obs/lib/debian.py
+++ b/scripts/obs/lib/debian.py
@@ -112,6 +112,10 @@
         # from wireshark. Don't abort here if that is the case.
         pass

+    # Debian versions must start with a digit
+    if version.startswith("osmo-epdg-"):
+        version = f"{version.replace('osmo-epdg-', '', 1)}-osmo-epdg"
+
     if version_changelog == version:
         return


--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/37521?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: If535af23bca3a31f71daeade4d8b52403f7f7e17
Gerrit-Change-Number: 37521
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-MessageType: newchange

Reply via email to