tis-schedule-wapt-upgrade

1.1-11
Trigger "wapt-get upgrade" everyday
1426 downloads
Download See VirusTotal scan
default icon
  • package : tis-schedule-wapt-upgrade
  • name : Schedule WAPT Upgrade
  • version : 1.1-11
  • categories : System and network,Security
  • maintainer : Tranquil IT
  • installed_size :
  • editor :
  • licence :
  • signature_date : 2020-11-13T11:45:29.741070
  • size : 9.30 Ko
  • locale :
  • target_os : windows
  • impacted_process :
  • architecture : all
  • Conflicts :
package           : tis-schedule-wapt-upgrade
version           : 1.1-11
architecture      : all
section           : base
priority          : standard
name              : Schedule WAPT Upgrade
categories        : System and network,Security
maintainer        : Tranquil IT
description       : Trigger "wapt-get upgrade" everyday
depends           : 
conflicts         : tis-wapt-schtask-auto-upgrade
maturity          : PROD
locale            : 
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 1.5
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Lance un "wapt-get upgrade" tous les jours
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : f8100efb-bc9c-462c-b1b7-d187dd13079d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : BwipavdBuwZGNBuXz9dNS6IkSkhNvlbESpL+GijFfPVbPxWIp6JvNl9pv2vldhiTTmAytt+/MHXue5enMGsE6Ava65A/5/LY1FlRcYbPUiI4n3GNeTuAZ3uxaocDSTC1wqDv8ChTZTZYVtwN2eeyJOSLJEGXp0cRUqPKkMkNKPxMifnBO8BwrF/mgLhQg3fX+8QP7KxxJ+P55YrO3JfP7TeIkLISQMOjru3q+7DRTE/TgTLtV191uYG2MhHss0MRjFnlmxy4/AaFAarUm/OYJvqmoJWavgKP5zZi2r2NU6F0iopLJhzNQT50E+iafV/nhHR8ovz50Uo7S8l9EBZRNg==
signature_date    : 2020-11-13T11:45:29.741070
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
# -*- coding: utf-8 -*-
from setuphelpers import *
import time

uninstallkey = []

# Defining variables
task_name = 'WAPTupgrade'
start_hour = 15       # Prefix with zero if needed
start_minute = 33    # Prefix with zero if needed


def install():
    # Creating the scheduled task
    if task_exists(task_name):
        delete_task(task_name)
    try:
        print('Creating the task: %s' % task_name)
        create_daily_task(task_name,'wapt-get','-S upgrade',start_hour=start_hour,start_minute=start_minute)
    except:
        print('Unable to create the task: %s' % task_name)

    # Removing the old scheduled task
    if task_exists('auto-wapt-upgrade'):
        try:
            delete_task('auto-wapt-upgrade')
        except:
            print('Unable to remove the task: auto-wapt-upgrade')


def uninstall():
    # Removing the scheduled task
    if task_exists(task_name):
        try:
            delete_task(task_name)
        except:
            print('Unable to remove the task: %s' % task_name)


def audit():
    if not task_exists(task_name):
        print("task %s don't exist, WAPT is installing package to fix that" % task_name)
        install()
        return "WARNING"
    if not enable_task(task_name):
        print("task %s is disable, WAPT is going to enable the task" % task_name)
        enable_task(task_name)
        return "WARNING"
    else:
        print("task %s exist and is active" % task_name)
        return "OK"


def update_package():
    # Initializing variables
    version = control.version.split('-')[0]

    # Incrementing version of the package
    control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing package version to: %s in WAPT\\control' % control.version)

93d72124e7983282602b2382dfc6e9adc6786823b39fb59c14446baae2950ecf : setup.py
394a78606b3312802aca8be118327029c2e789ba97b377dd64673ef33d4e3587 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
1cfd82bc5f7d1d7887785eb19a431d581f49f4a9eedba3d6a88311a8f3c5c5e0 : WAPT/control