Fix removing old MSI when updating package
This commit is contained in:
parent
1d7da50969
commit
e77e0f143b
2
setup.py
2
setup.py
|
@ -82,7 +82,7 @@ def update_package():
|
||||||
url = 'https://www.zabbix.com/downloads/%s/%s' % (latest_version, filename)
|
url = 'https://www.zabbix.com/downloads/%s/%s' % (latest_version, filename)
|
||||||
print('Downloading %s from %s' % (filename, url))
|
print('Downloading %s from %s' % (filename, url))
|
||||||
wget(url, filename)
|
wget(url, filename)
|
||||||
for old in glob.glob(r'zabbix_agent-*-win-%s-openssl.msi' % arch):
|
for old in glob.glob(r'zabbix_agent-*-windows-%s-openssl.msi' % arch):
|
||||||
if not old == filename:
|
if not old == filename:
|
||||||
remove_file(old)
|
remove_file(old)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user