Détails du package smp-clean_and_install_libreoffice-stable_1-1_all.wapt
retour Revenir à la liste des packages

smp-clean_and_install_libreoffice-stable

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

Fichier control :

package           : smp-clean_and_install_libreoffice-stable
version           : 1-1
architecture      : all
section           : base
priority          : optional
maintainer        : LESFOURMISDUWEB
description       : Le paquet nettoie tous les libreoffice et openoffice puis install libreoffice stable
depends           : 
conflicts         : 
maturity          : 
locale            : 
min_os_version    : 
max_os_version    : 
min_wapt_version  : 
sources           : 
installed_size    : 
signer            : wapt.lesfourmisduweb.org
signer_fingerprint: 8da83ebdac1a25e820b186510d049f47407b11835b0664fdc5bacd3595b1671d
signature         : tHp24C4f072ThLXHvng+sZjSGOsvjnxDFlH/728DC/K+cZk2SSB8Lc/SpW8bm8b3OhtHTsw6+XkPWPqLAyNrOcTrV+p2aQa+pkowWiri+V+7VDD1IHInztj6RZEZiJ5Bi1K/LL7gcwQPLFEyepH17Ry/OiI4LlaVlnduaA8IJQqNZcjQJejxelJV7w0LKl08LNuszEyheFhPzyQTUlaJRbI/NooyxurNSQADCrvE6mj9B1kJZQ69r5is6BhViFTEtX8oYYXhLCWkhH+v2dTFKbBx3nJVL71/6mWxPaqaQpqpqcdX6g8cqy7INcwjAaeK1rRTrfb8Nebn3I0zTkPYjw==
signature_date    : 20171122-013509
signed_attributes : package,version,architecture,section,priority,maintainer,description,depends,conflicts,maturity,locale,min_os_version,max_os_version,min_wapt_version,sources,installed_size,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-stable'% prefixpkg)
    if reader :
        WAPT.forget_packages(reader.package)
    WAPT.install('%s-libreoffice-stable'% prefixpkg)