File: python-version-number.patch

package info (click to toggle)
rmlint 2.9.0-2.5~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,172 kB
  • sloc: ansic: 15,100; python: 8,915; sh: 469; xml: 111; makefile: 72
file content (17 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Cebtenzzre
Subject: gui: use PEP 440-compliant version number
Origin: upstream, https://github.com/sahib/rmlint/commit/b5a6d9b359b1fc1ea75bdb6c1ae6cbdc0a304ecf
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040179

--- a/gui/setup.py
+++ b/gui/setup.py
@@ -14,7 +14,8 @@
     with open('../.version', 'r') as handle:
         version_string = handle.read()
 
-    return version_string.strip()
+    version_numbers, _ = version_string.split(' ', 1)
+    return version_numbers
 
 
 def get_prefix():