diff --git a/WAPT/control b/WAPT/control index a43e36c..13de64f 100644 --- a/WAPT/control +++ b/WAPT/control @@ -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 description : Zabbix Monitoring Agent depends : conflicts : -maturity : PROD +maturity : PREPROD locale : target_os : windows min_os_version : 5.0 diff --git a/setup.py b/setup.py index b1f6d2e..e986c9e 100644 --- a/setup.py +++ b/setup.py @@ -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): diff --git a/zabbix_agent-5.2.1-windows-amd64-openssl.msi b/zabbix_agent-5.2.1-windows-amd64-openssl.msi deleted file mode 100644 index f85e20a..0000000 --- a/zabbix_agent-5.2.1-windows-amd64-openssl.msi +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be1625b2df82bb3bb9089a94fd929cf1586f4de5f4a16f6b834384dd2f1b925f -size 6270976 diff --git a/zabbix_agent-5.2.1-windows-i386-openssl.msi b/zabbix_agent-5.2.1-windows-i386-openssl.msi deleted file mode 100644 index e57d155..0000000 --- a/zabbix_agent-5.2.1-windows-i386-openssl.msi +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1733478a2c8ead4b9d30898f03b3e5b1a55d27b67b9cdb6fc86da8daec281286 -size 5578752 diff --git a/zabbix_agent-5.2.2-windows-amd64-openssl.msi b/zabbix_agent-5.2.2-windows-amd64-openssl.msi new file mode 100644 index 0000000..81e3e7c --- /dev/null +++ b/zabbix_agent-5.2.2-windows-amd64-openssl.msi @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1731eaf2e25b6557dd7ad393fda7726ba023d0a32eefb8d58e21146f773396ae +size 6250496 diff --git a/zabbix_agent-5.2.2-windows-i386-openssl.msi b/zabbix_agent-5.2.2-windows-i386-openssl.msi new file mode 100644 index 0000000..b6ae1f3 --- /dev/null +++ b/zabbix_agent-5.2.2-windows-i386-openssl.msi @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a0586837ffcb56d66182ae5510329c6f51a6d915e7a83ba6aff722aac5f2a6c +size 5570560