
yarn
Silent install package for yarn
1.22.22-1
- package: tis-yarn
- name: yarn
- version: 1.22.22-1
- maintainer: Administrator
- licence: yarn licenses v0.14.0
- target_os: windows
- architecture: all
- signature_date:
- size: 1.36 Mo
- homepage : https://yarnpkg.com/
package : tis-yarn
version : 1.22.22-1
architecture : all
section : base
priority : optional
name : yarn
categories :
maintainer : Administrator
description : Yarn is a package manager for the npm and bower registries with a few specific focuses.
depends :
conflicts :
maturity : PROD
locale :
target_os : windows
min_wapt_version :
sources :
installed_size :
impacted_process :
description_fr : Yarn est un gestionnaire de paquets pour les registres npm et bower avec quelques objectifs spécifiques.
description_pl :
description_de : Yarn is een package manager voor npm en bower records met een aantal specifieke focussen.
description_es : Yarn es un administrador de paquetes para registros npm y bower con algunos enfoques específicos.
description_pt : Yarn é um gerenciador de pacotes para os registros npm e bower com alguns focos específicos.
description_it : Yarn è un gestore di pacchetti per i dischi npm e bower con alcuni focus specifici.
description_nl :
description_ru : Yarn - это менеджер пакетов для реестров npm и bower с несколькими специфическими целями.
audit_schedule :
editor :
keywords :
licence : yarn licenses v0.14.0
homepage : https://yarnpkg.com/
package_uuid : d7c18226-1684-48d2-a583-504d1c3352fe
valid_from :
valid_until :
forced_install_on :
changelog : Adds compatibility with WebAuthn on the npm registry
min_os_version :
max_os_version :
icon_sha256sum : 23be8b5540803d4f2507a084538ad3e3a8e20afd36a0cdfb99300a0555214428
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : y8XE+kqFbtXcdPpSRrwtA1tF1oYle3mk5M5KGRJ5HvmTWTE3F2rwoWoffQUStJORsbAfvZR7bVoqponZViL7sLjzAI55Wk1n0PRLDcvNcfCcPfZi95XtgJaYMhDNtdap4aZhay/HQ6Y1i5ihwAnSCwzYJ8QOF88VRLu3/PtC3i6jtgnBz58WOOxHAhoCZ8sPoJf+mfq62p5+kt8ejdJCfq1X8vwZmwdSUYOgln3hR6YWzkmf/UcstJSMVVM2Q1KwboaxEM9poWdH4yeSKFOBccBGT9MI6lE11+BWMce+sO+/4EnB/nJnMz/scipEwTXfEVA/eif3oklYtwwL6mm4cA==
signature_date : 2024-05-29T22:00:08.619722
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 *
r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
def install():
# Declaring local variables
last_package_version = control.get_software_version()
bin_name = 'yarn-%s.msi' % last_package_version
bin_name = 'yarn-' + last_package_version + '.msi'
bin_name = 'yarn-{}.msi'.format(last_package_version)
bin_name = f'yarn-{last_package_version}.msi'
# Installing the software
print("Installing: yarn")
install_msi_if_needed (bin_name)
# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
def update_package():
# Declaration of local variables
package_updated = False
proxies = get_proxies_from_wapt_console()
if not proxies:
proxies = get_proxies()
api_url = "https://api.github.com/repos/yarnpkg/yarn/releases"
# Get data from API
releases_dict = wgets(api_url, proxies=proxies, as_json=True)
msi_found = False # Flag pour indiquer la découverte d'un fichier .msi
for release in releases_dict:
if msi_found:
break
for asset in release["assets"]:
if asset["browser_download_url"].endswith(".msi"):
url_download = asset["browser_download_url"]
filename = url_download.split('/')[-1]
last_version = release["name"][1:]
msi_found = True # Mettre à jour le flag pour indiquer qu'un .msi a été trouvé
break
if not isfile(filename):
package_updated = True
wget(url_download,filename,proxies=proxies)
#nettoyer les fichiers temporaires
for f in glob.glob('*.msi'):
if f != filename:
remove_file(f)
control.set_software_version(last_version)
control.save_control_to_wapt()
return package_updated
# def update_package():
# # Declaring local variables
# package_updated = False
# proxies = get_proxies_from_wapt_console()
# url_download = 'https://classic.yarnpkg.com/en/docs/install' #url du telechargement
# if not proxies:
# proxies = get_proxies()
# for elem in bs_find_all('https://yarnpkg.com/',"a", "href","https://classic.yarnpkg.com/en/docs",proxies=proxies) :
# last_version = elem.contents[0]
# break
# url_download = 'https://yarnpkg.com/downloads/%s/yarn-%s.msi'%(last_version,last_version)
# filename = url_download.split('/')[-1]
# if not isfile(filename):
# package_updated = True
# wget(url_download,filename,proxies=proxies)
# #nettoyer les fichiers temporaires
# for f in glob.glob('*.msi'):
# if f != filename:
# remove_file(f)
# control.set_software_version(last_version)
# control.save_control_to_wapt()
# return package_updated
aac4b107169ee5113dda7d59d4115a743d0a0b4294d167e72746317b1de612fd : setup.py
ebc1f46891b8d507efad2dd18eec2c4e617457f93e13bc701483cb047a053fa1 : yarn-1.22.22.msi
2b82b969b07491feef6b7577fd131e0b86f856104fd0dfdc430ce0320a1caf05 : update_package.py
7b8a0db588c86459303d500258f984a02b6d3d0a7e246a4a3258201d8bce53fb : .vscode/launch.json
23be8b5540803d4f2507a084538ad3e3a8e20afd36a0cdfb99300a0555214428 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
8d19dd8aae2964ba07b0dcf31b266feb9be1dc9df0411cb644182074ef5e6e2c : luti.json
c1c7eb6b771a13d4bb612e36bc514e41a9c4f4b403337d7b135e8024feaf5e5b : WAPT/control