Update to 2.4.7

master
Daniel Berteaud 6 years ago
parent 50b2df36df
commit 9ed3f9cb3a
  1. 2
      WAPT/control
  2. BIN
      openvpn-install-2.4.6-I602.exe
  3. BIN
      openvpn-install-2.4.7-I603.exe
  4. 8
      setup.py

@ -1,5 +1,5 @@
package : fws-openvpn package : fws-openvpn
version : 2.4.6-7 version : 2.4.7-3
architecture : all architecture : all
section : base section : base
priority : optional priority : optional

Binary file not shown.

Binary file not shown.

@ -19,7 +19,7 @@ def install():
run(r'certutil.exe -addstore trustedpublisher openvpn.p7b') run(r'certutil.exe -addstore trustedpublisher openvpn.p7b')
print('Installing OpenVPN client') print('Installing OpenVPN client')
install_exe_if_needed('openvpn-install-%s-I602.exe' % version,'/S',key='OpenVPN',min_version='%s-I602' % version,killbefore=['openvpn','openvpn-gui']) install_exe_if_needed('openvpn-install-%s-I603.exe' % version,'/S',key='OpenVPN',min_version='%s-I602' % version,killbefore=['openvpn','openvpn-gui'])
uninstallkey.append('TAP-Windows') uninstallkey.append('TAP-Windows')
if 'openvpn_config' in variables: if 'openvpn_config' in variables:
@ -37,12 +37,12 @@ def update_package():
current_version = control['version'].split('-',1)[0] current_version = control['version'].split('-',1)[0]
if Version(latest_version) > Version(current_version): if Version(latest_version) > Version(current_version):
print('Updating Package from %s to %s' % (current_version, latest_version)) print('Updating Package from %s to %s' % (current_version, latest_version))
if not isfile('openvpn-install-%s-I602.exe' % latest_version): if not isfile('openvpn-install-%s-I603.exe' % latest_version):
url = 'https://swupdate.openvpn.org/community/releases/openvpn-install-%s-I602.exe' % latest_version url = 'https://swupdate.openvpn.org/community/releases/openvpn-install-%s-I603.exe' % latest_version
print('downloading %s' % url) print('downloading %s' % url)
wget(url, os.getcwd()) wget(url, os.getcwd())
for file in glob.glob('*.exe'): for file in glob.glob('*.exe'):
if file != 'openvpn-install-%s-I602.exe' % latest_version: if file != 'openvpn-install-%s-I603.exe' % latest_version:
print('Removing %s' % file) print('Removing %s' % file)
remove_file(file) remove_file(file)
pe.version = latest_version + '-0' pe.version = latest_version + '-0'

Loading…
Cancel
Save