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

Change subject: OBS: lib/debian: generate valid strongswan version
......................................................................

OBS: lib/debian: generate valid strongswan version

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(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified
  fixeria: Looks good to me, but someone else must approve




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: 2
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to