Tranquil IT recrute Tranquil IT recrute

tis-filezilla

Version : 3.39.0-47

Download
  • package : tis-filezilla
  • editor :
  • version : 3.39.0-47
  • licence : GNU/GPLv2
  • architecture : x86
  • locale : all
  • description : Client FTP Filezilla
  • description_fr : Client FTP Filezilla
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.5
  • installed_size : 30720000
  • impacted_process : filezilla.exe
  • signature_date : 20181227-114940
  • maintainer : Kevin Guerineau

setup.py

#!/usr/bin/python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------

from setuphelpers import *
import platform
uninstallkey=['FileZilla Client']

def install():
    waptversion = Version(__version__)

    if waptversion > Version('1.5') :

        diskfreespacebefore = get_disk_free_space(programfiles)

        versionsoft = control['version'].split('-',1)[0]
        exe = 'FileZilla_%s_win32-setup.exe' % versionsoft

        install_exe_if_needed(exe,'/S',key='FileZilla Client',min_version=versionsoft,killbefore='filezilla.exe')
        # disable auto update
        filecopyto('fzdefaults.xml',os.path.join(programfiles32,'FileZilla FTP Client'))

        diskfreespaceafter = get_disk_free_space(programfiles)
        difffreespace = diskfreespacebefore - diskfreespaceafter
        print(ur"Espace disque necessaire pour l'installation : " + str(difffreespace))

    else:
        error('This package is not compatible with your WAPT version. Please upgrade to WAPT 1.5 or more.')



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://filezilla-project.org/download.php?type=client').headers['Location']
##    filename = urlparse.unquote(url.rsplit('/',1)[1])

    import re,requests,BeautifulSoup
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    page = requests.get('https://filezilla-project.org/download.php?show_all=1',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
    pattern=re.compile(r"win32-setup.exe")
    bs = BeautifulSoup.BeautifulSoup(page)

    current_version = pe['version'].split('-',1)[0]
    filezilla_exe = str(bs.find('a',text=pattern))
    filezilla_version = re.findall('FileZilla_(.*)\_win32-setup.exe',str(filezilla_exe))[0]

    print "Current Filezilla WAPT package version is : %s" % current_version
    print "Latest Filezilla version is  is : %s" % filezilla_version

    wget_url = "https://download.filezilla-project.org/client/FileZilla_%s_win32-setup_bundled.exe" % (filezilla_version)

    # updates control version from filename, increment package version.
    control = PackageEntry().load_control_from_wapt ('.')
    control.version = '%s-%s' % (filezilla_version,int(control.version.split('-',1)[1])+1)
    control.save_control_to_wapt('.')

    if not isfile(filezilla_exe):
        print('Downloading %s from %s'%(filezilla_exe,wget_url))
        wget(wget_url,filezilla_exe)
        # removes old exe
        if isfile(filezilla_exe):
            exes = glob.glob('Filezilla*.exe')
            for fn in exes:
                if fn != filezilla_exe:
                    remove_file(fn)
    else:
        print("Latest version already downloaded, skip download")

if __name__ == '__main__':
    update_package()

			

Changelog

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

manifest.sha256

[["WAPT/icon.png", "b56bdb8c62724dabed19ca1fd5422fcb3bfc09d91243d909601c99fb8525fc52"], ["WAPT/certificate.crt", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["WAPT/wapt.psproj", "df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7"], ["fzdefaults.xml", "134402d52744232d93b7a5ac0a9d1450c1b4465101dff4c90d8ab8a52c6bad03"], ["FileZilla_3.39.0_win32-setup.exe", "0d21084ba66020906561367b7fd3fc204065bcfdb56678e1396cb4d32df92b9b"], ["setup.py", "e52665b775204bf5b2b0790085d364de9e0e494bde3cc9ccf3fc3432db672263"], ["WAPT/control", "b865670ddeb4d31e4aa3dc6cbd11e5f36165db0e87cd55806d3841bffe89a8ac"]]