Détails du package

smp-clean

retour Revenir à la liste des packages



Fichier control :

package           : smp-clean_and_install_libreoffice-still
version           : 11
architecture      : all
section           : base
priority          : optional
name              : 
categories        : 
maintainer        : LESFOURMISDUWEB
description       : Le paquet nettoie tous les libreoffice et openoffice puis install libreoffice stable
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      : 968abfdc-17fc-461f-831f-aa040b5a5ff7
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature         : KPhSZJD1saA2kSR/qrYO36EQNCeCY0MMlfqphY6xLQu/ljuLNjo4TkJQODJ0LechDjjcKiy6BAdunBjjHBu2bPfcmJhZc218HK0CmpQEXdXEk0wMRNe8apiIVdgcLYVta1oRprxDQxMmFTTJNflB+vXU16Jv31X6hEY/JtLrPIhVTnYkBW0Kr30IDB5RGrsCFoZxD5N4S1P8gxxncUlIT/inQpexSGfjthx2sXK6dYW1d81TmrQrNXjxY3et+s69Nncy3JDw9nRD6MQo6tKzv8fQchV8EG2YKyUH84u7jKlZ++YE59TqGw37w4TnyOV0Ls9C97GIcCRd39I3zmWKAg==
signature_date    : 2020-07-04T01:18:27.005820
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
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
#    This file is part of WAPT
#    Copyright (C) 2013  Tranquil IT Systems http://www.tranquil.it
#    WAPT aims to help Windows systems administrators to deploy
#    setup and update applications on users PC.
#
#    WAPT is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    WAPT is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with WAPT.  If not, see <http://www.gnu.org/licenses/>.
#
# -----------------------------------------------------------------------
import platform
from setuphelpers import *

uninstallkey=[]

def install():

    prefixpkg = control.package.split('-',1)[0]
    reader = WAPT.is_installed('%s-libreoffice'% prefixpkg)
    if reader :
        WAPT.forget_packages(reader.package)

    softname = 'LibreOffice'
    check_installed_soft = installed_softwares(softname)
    if check_installed_soft:
             for uninstall in check_installed_soft:
                key=uninstall['key']
                if installed_softwares(uninstallkey=key):
                         cmd = WAPT.uninstall_cmd(uninstall['key'])
                         run(cmd)

    softname = 'Openoffice'
    check_installed_soft = installed_softwares(softname)
    if check_installed_soft:
             for uninstall in check_installed_soft:
                key=uninstall['key']
                if installed_softwares(uninstallkey=key):
                         cmd = WAPT.uninstall_cmd(uninstall['key'])
                         run(cmd)

    reader = WAPT.is_installed('%s-libreoffice-still'% prefixpkg)
    if reader :
        WAPT.forget_packages(reader.package)
    WAPT.install('%s-libreoffice-still'% prefixpkg)