tis-rig icon

Rig

Silent install package for Rig

0.7.1-2

  • package: tis-rig
  • name: Rig
  • version: 0.7.1-2
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Ingrid TALBOT
  • editor: Gabor Csardi
  • licence: opensource_free,cpe:/a:mit:x11_license,wapt_private
  • locale: all
  • target_os: redhat_based
  • impacted_process: rig
  • architecture: x64
  • signature_date:
  • size: 3.86 Mo
  • installed_size: 16.78 Mo

package           : tis-rig
version           : 0.7.1-2
architecture      : x64
section           : base
priority          : optional
name              : Rig
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Ingrid TALBOT
description       : R Installation Manager (rig) installs,removes and configures R versions
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : redhat_based
min_wapt_version  : 2.3
sources           : 
installed_size    : 16776922
impacted_process  : rig
description_fr    : R Installation Manager (rig) installe, supprime et configure les versions de R
description_pl    : R Installation Manager (rig) instaluje, usuwa i konfiguruje wersje R
description_de    : R Installation Manager (rig) installiert, entfernt und konfiguriert R-Versionen
description_es    : R Installation Manager (rig) instala, elimina y configura versiones de R
description_pt    : O R Installation Manager (rig) instala, remove e configura versões do R
description_it    : R Installation Manager (rig) installa, rimuove e configura le versioni di R
description_nl    : R Installation Manager (rig) installeert, verwijdert en configureert R-versies
description_ru    : R Installation Manager (rig) устанавливает, удаляет и настраивает версии R
audit_schedule    : 
editor            : Gabor Csardi
keywords          : r,rstudio
licence           : opensource_free,cpe:/a:mit:x11_license,wapt_private
homepage          : 
package_uuid      : f4eaa19f-8b5c-4ffd-a585-b270adaa6773
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/r-lib/rig/releases
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 3078632e09e88905a16939aca654ceda7fd5d7acd4d42c79d49d2f1d5943d363
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-16T09:12:53.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,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,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : rV2HHCQMW355hNw/RqOoxqLOVARDYu/QJSwmHs4r0md/AI6M1H8Iw0ADEE5pCw22iVKJIrVAvd0BdRUE8avGdPzKDzzoDnqKc0fOIpHjdp6xfHCk0Zp3TaYrbKPFSIU78ic6he033QyR/8B0JN8f9mBg/UHJaDMBjkrts2+EvEyxt5xB6xrlQHkDrYa6J7GMz0hfPczZUdZmQe3rXvv9mEnmIl6FD1bhdt+XHsVc7Xbjs1hz4VEVRvbERg3QclpcL55Adhm10BhoITOTOAJpWv/hZzrqNyuYxE+qI5jlQxKx5MSZGaQxqNg8Ll640sQpZhykhsVcOChGDrRf5UhGmg==

# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    install_rpm(glob.glob("r-rig-*.x86_64.rpm")[0])


def uninstall():
    uninstall_yum("r-rig")



# -*- coding: utf-8 -*-
from setuphelpers import *
import re


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    update_dict = {"windows": ".exe", "redhat_based" : "x86_64.rpm", "debian_based" : "amd64.deb", "macos": ".pkg"}
    api_url = "https://api.github.com/repos/r-lib/rig/releases/latest"

    # Get data from API
    releases_dict = json.loads(wgets(api_url, proxies=proxies))
    rpm_found = False  # Flag pour indiquer la découverte d'un fichier .rpm
    for release in releases_dict:
        if rpm_found:
            break
        for asset in releases_dict["assets"]:
            if asset["browser_download_url"].endswith(".rpm") and update_dict[control.target_os] in asset["browser_download_url"]:
                url_download = asset["browser_download_url"]
                latest_bin = url_download.split("/")[-1]
                version = releases_dict["name"].split(" ")[1]
                rpm_found = True  # Mettre à jour le flag pour indiquer qu'un rpm a été trouvé
                break

    # Deleting binaries
    for f in glob.glob("*.rpm"):
        if f != latest_bin:
            remove_file(f)

    # Downloading latest binaries
    print("Download URL is: %s" % url_download)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(url_download, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)
    
    control.set_software_version(version)
    control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
e11a699f2c75c89a87e99388d603bf2b50ce9919a5aa2b5880ee98ba62df1ebd : WAPT/control
3078632e09e88905a16939aca654ceda7fd5d7acd4d42c79d49d2f1d5943d363 : WAPT/icon.png
1e7a496f58edee1d8e32dec35249b045848802c2ddfe9b16ed444af9a673a946 : luti.json
930144689a6f214b0f22b19581b89756f5d6cbf658fa57771f09c33173aa28a3 : r-rig-0.7.1-1.x86_64.rpm
ee5080b7d1fd2e9a4a0e7651dfbf9b9f9cf1755b955cab7a704e881175c565e2 : setup.py
b0e47ad1b39a0a4bfe2f494665ff016add6ab599140005f2769de2d096152149 : update_package.py