tis-vlc 2.2.8-2

  • package : tis-vlc
  • version : 2.2.8-2
  • description : vlc media player
  • maintainer : Simon Fonteneau <blog@lesfourmisduweb.org>
  • date : 2017-12-05 11:17:36
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20171205-111734
  • min_os_version :
  • min_wapt_version :

setup.py

from setuphelpers import *

uninstallkey = []

def install():

  print("installing VLC exe")

  versionpaquet = control['version'].split('-',1)[0]

  if iswin64():
            install_exe_if_needed('vlc-%s-win64.exe' % versionpaquet,silentflags='/S --no-qt-privacy-ask --no-qt-updates-notif',key='VLC media player',min_version=versionpaquet,killbefore=['vlc.exe'])
  else:
            install_exe_if_needed('vlc-%s-win32.exe' % versionpaquet,silentflags='/S --no-qt-privacy-ask --no-qt-updates-notif',key='VLC media player',min_version=versionpaquet,killbefore=['vlc.exe'])

  remove_desktop_shortcut('VLC media player')













def update_sources():

     htmlSource = wgets("http://www.videolan.org/vlc/download-windows.html").splitlines()

     for line in htmlSource :
         if 'downloadOS' in line :
             realversion = line[line.find("") + 12 :line.find("</span>")]
             filename32 = 'vlc-%s-win32.exe' % realversion
             filename64 = 'vlc-%s-win64.exe' % realversion

     exes = glob.glob('*.exe')
     for fn in exes:
        if fn != filename32 :
            if fn != filename64 :
                print 'remove' + fn
                remove_file(fn)


     if not isfile(filename32):
        print('Download' + filename32)
        wget('http://ftp.rezopole.net/vlc/vlc/'+ realversion +'/win32/' + filename32, filename32)
     if not isfile(filename64):
        print('Download ' + filename64)
        wget('http://ftp.rezopole.net/vlc/vlc/'+ realversion +'/win64/' + filename64, filename64)


     print ('Write ' + realversion + '-0 in WAPT\\control')
     from waptpackage import PackageEntry
     pe = PackageEntry()
     pe.load_control_from_wapt(os.getcwd())
     pe.version = realversion +'-0'
     pe.save_control_to_wapt(os.getcwd())

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

if __name__ == '__main__':
    update_sources()

    

manifest

Couldn't retrieve manifest.