Tranquil IT recrute Tranquil IT recrute

tis-firefox-de

Version : 62.0.2-13

Download
  • package : tis-firefox-de
  • editor :
  • version : 62.0.2-13
  • licence :
  • architecture : all
  • locale : de
  • description : Firefox butineur Allemand
  • description_fr :
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version :
  • installed_size :
  • impacted_process :
  • signature_date : 20180924-104203
  • maintainer : Hubert TOUVET

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():

    if windows_version() < Version('6.1'):
        error("Firefox >= 53 is not available anymore for Windows XP")
    version = control.version.split('-',1)[0]
    ukey = 'Mozilla Firefox %s (x86 de)'%version
    exe = 'Firefox Setup %s.exe'%version
    install_exe_if_needed(exe,'-ms',key=ukey,min_version=version,killbefore='firefox.exe')


def update_package():
    """updates the package / control version with the latest stable firefox version"""
    import re,requests,urlparse,glob

    # get index of all dowloads
    """
    #url_base = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/latest/win32/de/'
    url_base = 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/43.0/win32/de/'
    index = wgets(url_base)

    # get list of lastest german versions
    re_setup = re.compile(r'<a href=".*/(Firefox%20Setup%20[0-9.]*.exe)">Firefox Setup .*</a>')
    filename = urlparse.unquote(re_setup.findall(index)[0])
    url = url_base+filename
    """
    url = requests.head('https://download.mozilla.org/?product=firefox-latest&os=win&lang=de').headers['Location']
    filename = urlparse.unquote(url.rsplit('/',1)[1])

    if not isfile(filename):
        print('Downloading %s from %s'%(filename,url))
        wget(url,filename)

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

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


if __name__ == '__main__':
    update_package()
			

Changelog

"""{% trans %}No changelog.{% endtrans %}"""
			

manifest.sha256

[["setup.py", "50ed7b26b57bb6bd1e58e0ff914299e8f94e00f7b9153b7b80ec13cb6f51725e"], ["WAPT/certificate.crt", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["Firefox Setup 62.0.2.exe", "dac36ea882aa667a7ac26c689c6d3cb9d5bf002599fe5ddb7104f4f92cee7e24"], ["WAPT/wapt.psproj", "df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7"], ["WAPT/control", "3aa6360e4ccca09db640156d70a3f630c9e74c84597d154935ffdaddb0113808"]]