Browse Source

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
Florent Heuze 2 months ago
parent
commit
fae6adbb4e
6 changed files with 10 additions and 9 deletions
  1. +2
    -2
      WAPT/control
  2. +2
    -1
      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

+ 2
- 2
WAPT/control View File

@ -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


+ 2
- 1
setup.py View File

@ -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):


BIN
zabbix_agent-5.2.1-windows-amd64-openssl.msi (Stored with Git LFS) View File

size 6270976

BIN
zabbix_agent-5.2.1-windows-i386-openssl.msi (Stored with Git LFS) View File

size 5578752

BIN
zabbix_agent-5.2.2-windows-amd64-openssl.msi (Stored with Git LFS) View File

size 6250496

BIN
zabbix_agent-5.2.2-windows-i386-openssl.msi (Stored with Git LFS) View File

size 5570560

Loading…
Cancel
Save