summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:33:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:33:48 +0000
commite9b8c0c8356045197d48cd4ba37b90682fdb2f0a (patch)
tree08166048082ce5233b3d1bffc872cb781202ba39 /debian/patches
parentUsing wget instead of curl for improved reliability with poor connections. (diff)
downloaddevscripts-e9b8c0c8356045197d48cd4ba37b90682fdb2f0a.tar.xz
devscripts-e9b8c0c8356045197d48cd4ba37b90682fdb2f0a.zip
Updating PEP440 version handling to fix FTBFS with Progress Linux versions.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/progress-linux/0002-pep440.patch14
-rw-r--r--debian/patches/series1
2 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/progress-linux/0002-pep440.patch b/debian/patches/progress-linux/0002-pep440.patch
new file mode 100644
index 0000000..d27d656
--- /dev/null
+++ b/debian/patches/progress-linux/0002-pep440.patch
@@ -0,0 +1,14 @@
+Author: Daniel Baumann <daniel.baumann@progress-linux.org>
+Description: Updating PEP440 version handling to fix FTBFS with Progress Linux versions.
+
+diff -Naurp devscripts.orig/scripts/setup.py devscripts/scripts/setup.py
+--- devscripts.orig/scripts/setup.py
++++ devscripts/scripts/setup.py
+@@ -27,6 +27,7 @@ def make_pep440_compliant(version: str)
+ if not local:
+ return version
+ sanitized_local = re.sub("[+~]+", ".", local).strip(".")
++ sanitized_local = re.sub("^[+-]+", ".", sanitized_local).strip(".")
+ pep440_version = f"{public}+{sanitized_local}"
+ assert re.match(
+ "^[a-zA-Z0-9.]+$", sanitized_local
diff --git a/debian/patches/series b/debian/patches/series
index 8a36847..80b5737 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
progress-linux/0001-wget.patch
+progress-linux/0002-pep440.patch