Détails du package smp-add-preprod-maturity_11_all.wapt
retour Revenir à la liste des packages

smp-add-preprod-maturity

ATTENTION CE DÉPÔT n'est plus compatible 1.3 vous devez migrer en 1.5.1.21 !

Fichier control :

package           : smp-add-preprod-maturity
version           : 11
architecture      : all
section           : base
priority          : optional
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    : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : m/Ni8WWvVdNe7AMzGuIT91FTL90GzrWmYO7Atah59lUzy2MVeVMg/AtRou26O8bAQ0JjPqbGkfFl8a/DpbOk+3EX8PoPqrtrB99ZSk1qZMucysQWRyc8MgxB5Wqovu5u67GncmBhYP+Kq5to2/Zk+rQ5PzYV6U1faT6hlRTg9yVbQh5oayIdOpZdgHjuJDPh9miuIKeFpVSzbT3NW8tNEcXwT/odr/CdicOFPt81SLGhQF+YdBZlqG6TlbHiOLbxtaZ6TAOKGk2v02AHUZXUz7V08KJAx1Bhl5X4Jv6c0/iWc63sXCzCJ5OM/AdWod8aYeyVH4mQQUzY5TIqrWGWfw==
signature_date    : 20180329-094905
signed_attributes : package,version,architecture,section,priority,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,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')