tis-skype 8.25.0.5-11

  • package : tis-skype
  • version : 8.25.0.5-11
  • description : Skype is a telecommunications application software product that specializes in providing video chat and voice calls from computers, tablets, and mobile devices via the Internet to other devices or telephones/smartphones
  • maintainer : Kevin Guerineau
  • date : 2018-07-05 11:13:05
  • Depends :

setup.py

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

uninstallkey=[]

def install():
    current_version = control['version'].split('-',1)[0]
    short_version = current_version.split('.',2)[0] + '.' + current_version.split('.',2)[1]

    oldskype = installed_softwares('skype')
    for soft in oldskype:
        if Version(soft['version'])<Version(short_version):
            print("remove : %s " % soft['name'])
            run_notfatal(uninstall_cmd(soft['key']))
    print('installing Skype %s' % current_version)
    # hack... several properies with same key TRANSFORMS
    install_exe_if_needed('Skype-%s.exe' %current_version, key='Skype_is1',min_version=short_version)
    remove_desktop_shortcut('Skype')
    killalltasks(control['impacted_process'])



def update_package():

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

    import BeautifulSoup

    wget('https://go.skype.com/windows.desktop.download','skype-temp.exe',proxies=proxy)

    product_version = get_file_properties('skype-temp.exe')['FileVersion']

    exes = glob.glob('Skype*.exe')
    for fn in exes:
        if fn != 'skype-temp.exe':
            remove_file(fn)

    filecopyto('skype-temp.exe', 'Skype-%s.exe' % product_version)
    remove_file('skype-temp.exe')

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

if __name__ == '__main__':
    update_package()

    

Changelog

No changelog
    

manifest.sha256

[["WAPT/icon.png", "bd6b7d1fadbcdaf3f12753395bde90e5aab74bb75da73bd496f2892b3027e1b9"], ["WAPT/certificate.crt", "13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779"], ["WAPT/wapt.psproj", "df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7"], ["setup.py", "18daf2d598fdcafca29eb902e57d0321e7a95ce841fccaf0bb99edd10a5ac04e"], ["Skype-8.25.0.5.exe", "7ed0402f9ec44515ae9e662bde5fcbf08a76c353cfed1f2e426e36215a99e384"], ["WAPT/control", "733bf2f846fbae926e1ba26444b8d2a2d6bd2346944d515ca906c0ff8a12ad22"]]