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 package : fws-thunderbird-sogo-addons
version : 2 version : 60.0.0-1
architecture : all architecture : all
section : base section : base
priority : optional priority : optional
maintainer : Daniel Berteaud <daniel@firewall-services.com> maintainer : Daniel Berteaud <daniel@firewall-services.com>
description : SOGo addons for Thunderbird description : SOGo addons for Thunderbird
depends : fws-thunderbird,fws-7zip,fws-thunderbird-config depends : fws-thunderbird-config,fws-7zip
conflicts : conflicts :
maturity : DEV maturity : DEV
locale : 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()) 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()))) 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(): def install():
connector_version = control['version'].split('-',1)[0]
integrator_version = connector_version
for extension in ['connector','integrator']: for extension in ['connector','integrator']:
if isdir(makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-%s@inverse.ca' % extension)): 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)) 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)) remove_tree(makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-%s@inverse.ca' % extension))
def audit(): def audit():
connector_version = control['version'].split('-',1)[0]
integrator_version = connector_version
try: try:
run('type "%s" | find /I "em:version=" | find "%s"' % (makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-connector@inverse.ca','install.rdf'), connector_version)) run('type "%s" | find /I "em:version=" | find "%s"' % (makepath(programfiles,'Mozilla Thunderbird','distribution','extensions','sogo-connector@inverse.ca','install.rdf'), connector_version))
except: except:

Loading…
Cancel
Save