Détails du package

smp-add-preprod-maturity

retour Revenir à la liste des packages

smp-add-preprod-maturity

Fichier control :

package           : smp-add-preprod-maturity
version           : 11
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : wapt.lesfourmisduweb.org
description       : Ajout de PREPROD a la section maturities au wapt-get.ini des agents
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      : 7a834841-5447-4a5f-9a1a-b43f20de5168
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : YBU2tJNM9K5QZKGmgyEqaA0OMigFWDE60m3+peYdNKxE2NCqhSNlBk0DQvTBiMNlF8A+IbrA6it+73BDajaCa/F+/HWRl49r6+nBilTzeW4OqoSt6ZsKoeCb5i83/kDLB4LJy1uC0XnDrKWqRKxQVf1s62r/t64AkkwngGWQGO0N8+6W6ELJMcOnpgwFKA9dBrA8uORS38ROOu3EMQJEuW8zT0+3HhQLQwHv9c8hUJ344uevfRC6r0cmrlJoqabzWamP9FmFvkYNy9lMX2C6g+jY9JWe5uDQiMxodqTH/cP/yhPYCO2RtxCxqC8DkEBTeDwKqFgDtSEpg0BfHCRd+g==
signature_date    : 2020-07-04T01:17:49.871290
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 :

#!/usr/bin/python

from setuphelpers import *

uninstallkey=[]

newmaturity = 'PREPROD'

def install():
    if not newmaturity in WAPT.maturities:
        WAPT.maturities.append(newmaturity)
        inifile_writestring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities))

def uninstall():
    if newmaturity in WAPT.maturities:
        WAPT.maturities.remove(newmaturity)
        inifile_writestring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities))

    if not inifile_readstring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities)) :
        inifile_deleteoption(WAPT.config_filename,'global','maturities')