hotfix
This commit is contained in:
parent
8b641e0b5c
commit
3be0715b43
2
setup.py
2
setup.py
@ -7,7 +7,7 @@ README_MD = open(join(dirname(abspath(__file__)), "README.md")).read()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="trueupdate",
|
name="trueupdate",
|
||||||
version="2.0.0",
|
version="2.0.1",
|
||||||
|
|
||||||
# The packages that constitute your project.
|
# The packages that constitute your project.
|
||||||
# For my project, I have only one - "pydash".
|
# For my project, I have only one - "pydash".
|
||||||
|
@ -64,13 +64,13 @@ def execute_upgrades():
|
|||||||
latest_version = split_latest[1]
|
latest_version = split_latest[1]
|
||||||
if check_semver(current_version, latest_version):
|
if check_semver(current_version, latest_version):
|
||||||
print(f"Updating {chart.name}... \n")
|
print(f"Updating {chart.name}... \n")
|
||||||
#pre_update_ver = chart.human_version
|
pre_update_ver = chart.human_version
|
||||||
#result = subprocess.run(['cli', '-c', f'app chart_release upgrade release_name={chart.name}'], capture_output=True)
|
result = subprocess.run(['cli', '-c', f'app chart_release upgrade release_name={chart.name}'], capture_output=True)
|
||||||
#post_update_ver = chart.human_latest_version
|
post_update_ver = chart.human_latest_version
|
||||||
#if "Upgrade complete" not in result.stdout.decode('utf-8'):
|
if "Upgrade complete" not in result.stdout.decode('utf-8'):
|
||||||
# print(f"{chart.name} failed to upgrade. \n{result.stdout.decode('utf-8')}")
|
print(f"{chart.name} failed to upgrade. \n{result.stdout.decode('utf-8')}")
|
||||||
#else:
|
else:
|
||||||
# print(f"{chart.name} upgraded ({pre_update_ver} --> {post_update_ver})")
|
print(f"{chart.name} upgraded ({pre_update_ver} --> {post_update_ver})")
|
||||||
|
|
||||||
def fetch_charts():
|
def fetch_charts():
|
||||||
rawcharts = subprocess.run(["cli", "-c", "app chart_release query"], stdout=subprocess.PIPE)
|
rawcharts = subprocess.run(["cli", "-c", "app chart_release query"], stdout=subprocess.PIPE)
|
||||||
|
Loading…
Reference in New Issue
Block a user