File: fix_version.patch

package info (click to toggle)
python-pbcommand 2.1.1%2Bgit20231020.28d1635-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,016 kB
  • sloc: python: 7,676; makefile: 218; sh: 73
file content (18 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Andreas Tille <tille@debian.org>
Last-Update: Sat, 07 Dec 2019 21:44:15 +0100
Description: For some reason pkg_resources.get_distribution('pbcommand') fails
 This patch makes sure a valid version will be set initially
 .
 FIXME: Needs to be adapted fro new upstream versions

--- a/pbcommand/__init__.py
+++ b/pbcommand/__init__.py
@@ -4,7 +4,7 @@ import sys
 try:
     __VERSION__ = pkg_resources.get_distribution('pbcommand').version
 except Exception:
-    __VERSION__ = 'unknown'
+    __VERSION__ = '2.4.0'
 
 VERSION = (int(x) for x in __VERSION__.split('.'))