Fix version

master
Daniel Berteaud 6 years ago
parent 9af684495e
commit 172a54a517
  1. 4
      WAPT/control
  2. 7
      setup.py

@ -1,11 +1,11 @@
package : fws-thunderbird-sogo-addons
version : 2
version : 60.0.0-1
architecture : all
section : base
priority : optional
maintainer : Daniel Berteaud <daniel@firewall-services.com>
description : SOGo addons for Thunderbird
depends : fws-thunderbird,fws-7zip,fws-thunderbird-config
depends : fws-thunderbird-config,fws-7zip
conflicts :
maturity : DEV
locale :

@ -17,10 +17,9 @@ if isfile(makepath(programfiles32,'wapt','private','symetric.txt')) and isfile(m
f = Fernet(open(makepath(programfiles32,'wapt','private','symetric.txt'),'r').read())
variables.update(json.loads(f.decrypt(open(makepath(programfiles32,'wapt','private','variables.txt'),'r').read())))
connector_version = control.version.split('-',1)[0]
integrator_version = connector_version
def install():
connector_version = control['version'].split('-',1)[0]
integrator_version = connector_version
for extension in ['connector','integrator']:
if isdir(makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-%s@inverse.ca' % extension)):
remove_tree(makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-%s@inverse.ca' % extension))
@ -51,6 +50,8 @@ def uninstall():
remove_tree(makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-%s@inverse.ca' % extension))
def audit():
connector_version = control['version'].split('-',1)[0]
integrator_version = connector_version
try:
run('type "%s" | find /I "em:version=" | find "%s"' % (makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-connector@inverse.ca','install.rdf'), connector_version))
except:

Loading…
Cancel
Save