Fix bug: increase one automatically of the version number.

This commit is contained in:
SWHL committed 2023-01-08 17:21:23 +08:00
1 parent e421e3bbf5
commit 60e2d2e1b4
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ def get_latest_version(package_name):
output = output.stdout.decode('utf-8')
if output:
output = list(filter(lambda x: len(x) > 0, output.split('\n')))
return output[0].split(' ')[-1][1:-1]
return output[0].split(' ')[-1][1:-2]
return None
+1 -1
View File
@@ -13,7 +13,7 @@ def get_latest_version(package_name):
output = output.stdout.decode('utf-8')
if output:
output = list(filter(lambda x: len(x) > 0, output.split('\n')))
return output[0].split(' ')[-1][1:-1]
return output[0].split(' ')[-1][1:-2]
return None
+1 -1
View File
@@ -13,7 +13,7 @@ def get_latest_version(package_name):
output = output.stdout.decode('utf-8')
if output:
output = list(filter(lambda x: len(x) > 0, output.split('\n')))
latest_version = output[0].split(' ')[-1][1:-1]
latest_version = output[0].split(' ')[-1][1:-2]
return latest_version
return None
+1 -1
View File
@@ -12,7 +12,7 @@ def get_latest_version(package_name):
output = output.stdout.decode('utf-8')
if output:
output = list(filter(lambda x: len(x) > 0, output.split('\n')))
latest_version = output[0].split(' ')[-1][1:-1]
latest_version = output[0].split(' ')[-1][1:-2]
return latest_version
return None