mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix marvin package version while building packages (#9230)
This commit is contained in:
parent
b2ef53b8a2
commit
8221be3a8c
@ -34,6 +34,8 @@ def replaceVersion(fname, version):
|
||||
with open(fname, 'r') as f:
|
||||
content = f.read()
|
||||
needle = '\nVERSION\s*=\s*[\'"][^\'"]*[\'"]'
|
||||
# Ensure the version is PEP440 compliant
|
||||
version = version.replace('-', '+', 1)
|
||||
replacement = '\nVERSION = "%s"' % version
|
||||
content = re.sub(needle, replacement, content, 1)
|
||||
with open(fname, 'w') as f:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user