Update setup.py for update_package. Get new path for downloading from zabbix.com. CF https://tkt.fws.fr/front/ticket.form.php?id=47255

Update zabbix-agent to 5.2.2
master
Heuze Florent 4 years ago
parent 1ca7ebda67
commit fae6adbb4e
  1. 4
      WAPT/control
  2. 3
      setup.py
  3. BIN
      zabbix_agent-5.2.1-windows-amd64-openssl.msi
  4. BIN
      zabbix_agent-5.2.1-windows-i386-openssl.msi
  5. BIN
      zabbix_agent-5.2.2-windows-amd64-openssl.msi
  6. BIN
      zabbix_agent-5.2.2-windows-i386-openssl.msi

@ -1,5 +1,5 @@
package : fws-zabbix-agent
version : 5.2.1-1
version : 5.2.2-0
architecture : all
section : base
priority : optional
@ -9,7 +9,7 @@ maintainer : Heuze Florent <heuzef@firewall-services.com>
description : Zabbix Monitoring Agent
depends :
conflicts :
maturity : PROD
maturity : PREPROD
locale :
target_os : windows
min_os_version : 5.0

@ -70,6 +70,7 @@ def update_package():
print('Checking latest agent version')
page = wgets('https://www.zabbix.com/download')
latest_version = re.search('"latest":"(\d+(\.\d+)*)"', page).group(1)
branch = re.search('"slug":"(\d+(\.\d+)*)"', page).group(1)
pe = PackageEntry()
control = pe.load_control_from_wapt(os.getcwd())
current_version = control['version'].split('-',1)[0]
@ -79,7 +80,7 @@ def update_package():
for arch in ['amd64', 'i386']:
filename ='zabbix_agent-%s-windows-%s-openssl.msi' % (latest_version, arch)
if not isfile(filename):
url = 'https://www.zabbix.com/downloads/%s/%s' % (latest_version, filename)
url = 'https://cdn.zabbix.com/zabbix/binaries/stable/%s/%s/%s' % (branch, latest_version, filename)
print('Downloading %s from %s' % (filename, url))
wget(url, filename)
for old in glob.glob(r'zabbix_agent-*-windows-%s-openssl.msi' % arch):

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save