Browse Source

Update to 2.5.2

master
Daniel Berteaud 1 year ago
parent
commit
296b36bbb8
6 changed files with 10 additions and 8 deletions
  1. +1
    -1
      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. +3
    -1
      setup.py

+ 1
- 1
WAPT/control View File

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


BIN
fusioninventory-agent_windows-x64_2.5.1.exe (Stored with Git LFS) View File

size 10453758

BIN
fusioninventory-agent_windows-x64_2.5.exe (Stored with Git LFS) View File

size 9680495

BIN
fusioninventory-agent_windows-x86_2.5.1.exe (Stored with Git LFS) View File

size 10403441

BIN
fusioninventory-agent_windows-x86_2.5.exe (Stored with Git LFS) View File

size 9240438

+ 3
- 1
setup.py View File

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