[neon/forks/ubuntu-release-upgrader/Neon/release_noble] /: Strip neon version

Jonathan Riddell null at kde.org
Wed Sep 4 15:55:46 BST 2024


Git commit e5228d4d58903f89290c09f98998a08a750d981d by Jonathan Riddell.
Committed on 04/09/2024 at 14:55.
Pushed by jriddell into branch 'Neon/release_noble'.

Strip neon version

M  +2    -0    setup.py

https://invent.kde.org/neon/forks/ubuntu-release-upgrader/-/commit/e5228d4d58903f89290c09f98998a08a750d981d

diff --git a/setup.py b/setup.py
index 61953d502..d4a8f08ca 100755
--- a/setup.py
+++ b/setup.py
@@ -15,6 +15,8 @@ for line in check_output('dpkg-parsechangelog --format rfc822'.split(),
         # PEP 440 uses '!' for the epoch separator:
         #   https://peps.python.org/pep-0440/#version-epochs
         version = value.strip().replace(':','!')
+        # Strip neon version -- jriddell 2024-09-04
+        version = version[:version.find("+")]
         break
 else:
     raise RuntimeError('No version found in debian/changelog')


More information about the Neon-commits mailing list