Update to 2.5.2

master
Daniel Berteaud 6 years ago
parent 68f376c681
commit 296b36bbb8
  1. 2
      WAPT/control
  2. BIN
      fusioninventory-agent_windows-x64_2.5.1.exe
  3. BIN
      fusioninventory-agent_windows-x64_2.5.exe
  4. BIN
      fusioninventory-agent_windows-x86_2.5.1.exe
  5. BIN
      fusioninventory-agent_windows-x86_2.5.exe
  6. 4
      setup.py

@ -1,5 +1,5 @@
package : fws-fusioninventory
version : 2.5-2
version : 2.5.1-2
architecture : all
section : base
priority : optional

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -36,17 +36,19 @@ def update_package():
version = latest['tag_name']
pe = PackageEntry();
control = pe.load_control_from_wapt('.')
bin_found = []
for arch in ['86','64']:
for asset in latest['assets']:
if asset['name'] == 'fusioninventory-agent_windows-x%s_%s.exe' % (arch, version) and not isfile('fusioninventory-agent_windows-x%s_%s.exe' % (arch, version)):
url = asset['browser_download_url']
print('Downloading FusionInventory Agent %s for x%s from %s' % (version,arch,url))
wget(url,'fusioninventory-agent_windows-x%s_%s.exe' % (arch, version))
bin_found.append(arch)
for file in glob.glob('fusioninventory-agent_windows-%s_*.exe' % arch):
if file != 'fusioninventory-agent_windows-x%s_%s.exe' % (arch, version):
print('Removing %s' % file)
remove_file(file)
if Version(version) > Version(control['version'].split('-',1)[0]):
if Version(version) > Version(control['version'].split('-',1)[0]) and '86' in bin_found and '64' in bin_found:
print('Updating control file with new version %s' % version)
pe.version = version + '-0'
pe.maturity = 'PREPROD'

Loading…
Cancel
Save