Détails du package

smp-wapt-schtask-auto-upgrade

retour Revenir à la liste des packages

smp-wapt-schtask-auto-upgrade

Fichier control :

package           : smp-wapt-schtask-auto-upgrade
version           : 5
architecture      : all
section           : base
priority          : standard
name              : 
categories        : 
maintainer        : Lesfourmisduweb
description       : Launch wapt-upgrade everyday at 04h00
depends           : 
conflicts         : 
maturity          : 
locale            : 
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : ab4ce010-6d63-40a0-96e7-b58ca828ea7f
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : uC1a7KZjPiBUQcmUor1Vf0ad1fF4zdnIJ5p1AqkPaT146kzVHUbHn5A0gXpNCX5k9y0SxW9RmH+YtOIiS2MmIeYRbJoYLRHYPMcPm1mITnbbEV/ACDV2El+DSWG8WGQOOM50IUyghMlLifcXfmbRqfR2MlNIaWspwh/9aSheIy9xPYkZnURoSd89OzkovNucu0uPBKTrMaiuWPhaF0DDH3QZEduVsia8yIe1RAnn1N/5+FCNk4+mbxv0xiCClMPv/TpoeUtfUvEHx9MMJkrCrbCnQ2lDtxuMTnZHGh28/MrobLDHiH1SpLh/OiEkq9MHIXBZsyaj8ovSwQMCR5j6/w==
signature_date    : 2020-07-04T02:34:43.566000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes



Fichier setup.py :

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

uninstallkey = []

def install():
    print('installing wapt-schtask-auto-upgrade')

    if windows_version() > Version('6.0'):
        run('schtasks /Create  /f /TN "auto-wapt-upgrade" /RU SYSTEM /xml auto-wapt-upgrade.xml')
    else:
        if 'auto-wapt-upgrade' in run('schtasks') :
            run('schtasks /delete /f /tn "auto-wapt-upgrade"')
        create_daily_task('auto-wapt-upgrade','wapt-get','-S upgrade', max_runtime=120,start_hour=4,start_minute=0)

def uninstall():
    if 'auto-wapt-upgrade' in run('schtasks') :
        run('schtasks /delete /f /tn "auto-wapt-upgrade"')