tis-virtio

0.1.185-3
VirtIO Drivers
825 downloads
Download

  Description 

  • package : tis-virtio
  • version : 0.1.185-3
  • architecture : x86
  • categories : Drivers
  • maintainer : WAPT Team,Jimmy PELÉ
  • description : VirtIO Drivers
  • locale :
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.5
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Red Hat, Inc.
  • licence :
  • signature_date : 2020-06-17T14:24:58.733000

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
real_bin_name = 'virtio-win-gt-x86.msi'
bin_name_string = 'virtio-win-gt-x86-%s.msi'


def install():
    # Specific app values
    package_version = control.version.split('-')[0]
    bin_name = bin_name_string % package_version

    # Add "Red Hat, Inc." to Trusted Publishers
    with disable_file_system_redirection():
        run('"%s" -addstore TrustedPublisher "%s"' % (makepath(system32,'certutil.exe'),makepath(basedir,'redhat-drivers.cer')))

    # Installing the package
    install_msi_if_needed(bin_name)


def update_package():
    print('Download/Update package content from upstream binary sources')

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Specific app values
    url_dl = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/latest-virtio/%s' % real_bin_name

    # Downloading latest binaries
    if isfile(real_bin_name):
        remove_file(real_bin_name)
    if not isfile(real_bin_name):
        print('Downloading: ' + real_bin_name)
        wget(url_dl,real_bin_name,proxies=proxy)

        # Get version from file
        version = get_msi_properties(real_bin_name)['ProductVersion']
        os.rename(real_bin_name,bin_name_string % version)
		# Change version of the package
        pe = PackageEntry().load_control_from_wapt('.')
        pe.version = '%s-%s'%(version,int(pe.version.split('-',1)[1])+1)
        pe.save_control_to_wapt('.')
        print('Changing version to ' + pe.version + ' in WAPT\\control')
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')    


										

  Changelog 


No changelog
  manifest.sha256 
[["virtio-win-gt-x86-0.1.185.msi","8db26d0715f241da78034e3665226604c2425bfa0e1c414db753f6cb9814f049"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],[".vscode/settings.json","7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012"],["redhat-drivers.cer","051ad353a3fdc12faa3b2500401cb543aa273c36dd356aac558e263a6b68b0ba"],[".vscode/launch.json","73ed339a2734c53613d1645b72606058a4a1eb060e44cd7d83d36add51f338bd"],["setup.py","c2c9bc88442af0e8b9044f66c9e5c1d9765fcee0aae191187fa7e6961ba0bfc3"],[".env","e312ee6c8275d1f07a4ce8ccbd1a17744f156a86929fc24e25e44fb10f0997dc"],["WAPT/control","9e1e2e38b10c60745eb3e8be7e128f409988cb18d961da55aae845eda7759ac3"],["WAPT/wapt.psproj","39d59e4b264b47219b507096ff5a17a34388b6f42d62fc2b5daf6710d6dc9aa8"]]