osmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/29097 )
Change subject: obs: meaningful error if debian/changelog is empty
......................................................................
obs: meaningful error if debian/changelog is empty
If there's an empty debian/changelog, packaging needs to be fixed in the
git repository of the project. Print a meaningful error instead of:
File "/obs/lib/srcpkg.py", line 68, in get_version_for_feed
if ":" in ret:
TypeError: argument of type 'NoneType' is not iterable
Change-Id: I294d844ccccfa12599b6ba1def087e4a32d289e7
---
M scripts/obs/lib/debian.py
M scripts/obs/lib/srcpkg.py
2 files changed, 6 insertions(+), 8 deletions(-)
Approvals:
neels: Looks good to me, approved
daniel: Looks good to me, but someone else must approve
Jenkins Builder: Verified
diff --git a/scripts/obs/lib/debian.py b/scripts/obs/lib/debian.py
index 89153fb..3bba3ec 100644
--- a/scripts/obs/lib/debian.py
+++ b/scripts/obs/lib/debian.py
@@ -73,14 +73,15 @@
repo_path = lib.git.get_repo_path(project)
changelog_path = f"{repo_path}/debian/changelog"
- if not os.path.exists(changelog_path):
- return None
+ assert os.path.exists(changelog_path), f"{project}: missing debian/changelog"
changelog = open(changelog_path).read()
- if not changelog:
- return None
+ assert changelog, f"{project}: debian/changelog is empty"
- return changelog.split("(", 1)[1].split(")", 1)[0]
+ ret = changelog.split("(", 1)[1].split(")", 1)[0]
+ assert ret, f"{project}: couldn't find last version in debian/changelog"
+
+ return ret
def changelog_add_entry_if_needed(project, feed, version):
diff --git a/scripts/obs/lib/srcpkg.py b/scripts/obs/lib/srcpkg.py
index baf64a9..035cf81 100644
--- a/scripts/obs/lib/srcpkg.py
+++ b/scripts/obs/lib/srcpkg.py
@@ -70,9 +70,6 @@
if ":" in ret:
ret = ret.split(":")[1]
- if not ret:
- ret = "0.0.0"
-
# Append the conflict_version to increase the version even if the commit
# did not change (OS#5135)
if conflict_version:
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/29097
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I294d844ccccfa12599b6ba1def087e4a32d289e7
Gerrit-Change-Number: 29097
Gerrit-PatchSet: 4
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: neels.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-upf/+/29143 )
Change subject: improve manual: PFCP and GTP interfaces
......................................................................
Patch Set 1:
(2 comments)
File doc/manuals/chapters/overview.adoc:
https://gerrit.osmocom.org/c/osmo-upf/+/29143/comment/bcf6c64c_06c431c9
PS1, Line 162: requires Linux kernel features
... requires *the following* Linux kernel features ...
File doc/manuals/chapters/running.adoc:
https://gerrit.osmocom.org/c/osmo-upf/+/29143/comment/c48f718b_80f68c2f
PS1, Line 8: [-s] [-T] [-e 'LOGLEVEL']
Remove this (options are not present).
--
To view, visit https://gerrit.osmocom.org/c/osmo-upf/+/29143
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: Iccb3f0f52bd5006bc94d0ca06ac5d3271ea89eb9
Gerrit-Change-Number: 29143
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 19 Aug 2022 13:42:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
fixeria has submitted this change. ( https://gerrit.osmocom.org/c/libsmpp34/+/29077 )
Change subject: README.md: fix copy-paste: s/libosmocore/libsmpp34/
......................................................................
README.md: fix copy-paste: s/libosmocore/libsmpp34/
Change-Id: Ic0b804f5b3e4ddfc7b6e71195f3acf4dae2c4297
---
M README.md
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
neels: Looks good to me, approved
diff --git a/README.md b/README.md
index 2bca502..d2db059 100644
--- a/README.md
+++ b/README.md
@@ -58,5 +58,5 @@
<https://osmocom.org/projects/cellular-infrastructure/wiki/Gerrit> for
more details
-The current patch queue for libosmocore can be seen at
+The current patch queue for libsmpp34 can be seen at
<https://gerrit.osmocom.org/#/q/project:libsmpp34+status:open>
--
To view, visit https://gerrit.osmocom.org/c/libsmpp34/+/29077
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libsmpp34
Gerrit-Branch: master
Gerrit-Change-Id: Ic0b804f5b3e4ddfc7b6e71195f3acf4dae2c4297
Gerrit-Change-Number: 29077
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: merged