- package: tis-rig
- name: Rig
- version: 0.7.0-1
- 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.78 Mo
- installed_size: 16.78 Mo
package : tis-rig
version : 0.7.0-1
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 : 296750d7-4923-4577-bbf7-cf2520f356f5
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 : uFmRH7X/hOtLIdPCZdRRWyv/ZeHUHdQpoZDB9WQ5J30+Rt/MwBxBfAs0q3oBFXy8PvWWnHc8qEusXLMOKsfQnVgJADmqOANnwqvOsH0GhtNz3zuhoK2riXl0zzMTsGdAaZ4juCYI0bSB7EI7zEQUp+jP7mT1dfUOLaAEouEwQwom69K+dYpqiqVawvPrKCSV3qCOsMyVFvkPYsEzwHDXIBZaAZmK95BxAp1pTD1sjxEMsMF6bzIHvCCQVkKeu1xJa8G47CYYTk96vXP/o1OLC1Loj5rR0hmrz00ceqeVaxRNvXm4YtmCrtCGaQ6jhAIn1HUXEcBDtBFHqmckeWlb7g==
signature_date : 2024-07-21T14:02:02.334855
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
# -*- 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()
ee5080b7d1fd2e9a4a0e7651dfbf9b9f9cf1755b955cab7a704e881175c565e2 : setup.py
45388627a85fa8ea405b456dd9435ecc31884dc889770b9af7efe8d78b02a159 : r-rig-0.7.0-1.x86_64.rpm
b0e47ad1b39a0a4bfe2f494665ff016add6ab599140005f2769de2d096152149 : update_package.py
3078632e09e88905a16939aca654ceda7fd5d7acd4d42c79d49d2f1d5943d363 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
8eed3f48eea094be73afdab367ad40bf549ffc91035c6fa9159b9a0d1e551088 : luti.json
b519bc3cd08d58ab7be21e9b475120e7cbec38a5a82aaa1afbc0f6514ae98c66 : WAPT/control