tis-thunderbird 52.8.0-7

  • package : tis-thunderbird
  • version : 52.8.0-7
  • description : Client de messagerie email POP IMAP LDAP
  • maintainer : Simon Fonteneau
  • date : 2018-05-22 12:24:58

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-

from setuphelpers import *


uninstallkey = []


#proxy={'http':'http://srvproxy:3128','https':'http://srvproxy:3128'}
proxy = {}

def install():
    version = control['version'].split('-',1)[0]
    key='Mozilla Thunderbird %s (x86 fr)' % version
    install_exe_if_needed('Thunderbird Setup %s.exe' % version ,silentflags='-ms',key=key ,min_version=version,killbefore=['thunderbird.exe'])
    remove_desktop_shortcut('Mozilla Thunderbird')


    print("Disabling auto update")
    filecopyto("mozilla.cfg",install_location(key))
    filecopyto("local-settings.js",makepath(install_location(key),"defaults","pref"))


def update_package():

    import re,requests,urlparse,glob

    url = requests.head('https://download.mozilla.org/?product=thunderbird-latest&os=win&lang=fr',proxies=proxy).headers['Location']
    filename = urlparse.unquote(url.rsplit('/',1)[1])
    if not isfile(filename):
        print('Downloading %s from %s'%(filename,url))
        wget(url,filename,proxies=proxy)
    else:
        print(filename + ' already exist')


    # updates control version from filename, increment package version.
    control = PackageEntry().load_control_from_wapt ('.')
    control.version = '%s-%s'%(re.findall(r'Thunderbird Setup (.*)\.exe',filename)[0],int(control.version.split('-',1)[1])+1)
    control.save_control_to_wapt('.')

    # removes old exe
    if isfile(filename):
        exes = glob.glob('Thunderbird*.exe')
        for fn in exes:
            if fn != filename:
                print('Delete ' + fn)
                remove_file(fn)

    print('The update is complete, you can now test and then launch a build upload.')

if __name__ == '__main__':
    update_package()


    

Changelog

No changelog
    

manifest.sha256

[["local-settings.js", "78498a0d8c1e6b137e93081a785aacf63fccc3fb8f7ea04354d48224f5e1b357"], ["WAPT/icon.png", "4c42c4e3dc4d47449a18c238f73a5d41d589afd612c1d26ea53df46b00ed2425"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "e306ae088b4ffc91364d6f53a3933bffa75f4bc4f8a3d6ff422209e90760feb0"], ["Thunderbird Setup 52.8.0.exe", "718f96be3369ee7a976f2e5d56fbc7bf5d0bb2b841d57592f9bb3a09a3c31191"], ["setup.py", "dec0939f6cceae2d290b80de46efc3cfe713bee01d8bc3aeca304e140cc175d5"], ["WAPT/control", "0c39bb36dcb51204ec323f494d51200407724576d8a3b518166297ef1ab46f6a"], ["mozilla.cfg", "d9105efcd02b10b92a94166553e9f3c76dd9ea53115689744488701499db784a"]]