tis-tortoisesvn icon

Tortoisesvn

Paquet d’installation silencieuse pour Tortoisesvn

1.14.3.29387-23

  • package: tis-tortoisesvn
  • name: Tortoisesvn
  • version: 1.14.3.29387-23
  • categories: utilities
  • maintainer: Tranquil IT System, Pierre COSSON
  • locale: all
  • target_os: windows
  • impacted_process: TortoiseProc
  • architecture: x86
  • signature_date:
  • size: 16.62 Mo
  • installed_size: 41.39 Mo
  • depends:

package           : tis-tortoisesvn
version           : 1.14.3.29387-23
architecture      : x86
section           : base
priority          : optional
name              : Tortoisesvn
categories        : utilities
maintainer        : Tranquil IT System, Pierre COSSON
description       : Versioning tool integrated in windows explorer
depends           : tis-vcredist2012
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://tortoisesvn.net/downloads.html
installed_size    : 41394176
impacted_process  : TortoiseProc
description_fr    : Outil de versioning SVN Subversion intégré à l'explorateur Windows
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 0ed655c9-ae67-4902-ba0c-32926ddc4b3d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : af22ffab9f39e29286075b3ad95c4ee1a40c24a150bec41176965386d61f0750
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : kZ2P27mbJ/8C5I0wgf/IjB30w/lZJ33uWE0bA+0RwGrx/gkoj/hZg6DBwCtksxX3YfXmXmkuXxq07vvoCLixqu2D5y1tx8BVo4GRy7VSus3wxIbaEmNvcCFfcRab8gQ38anSg4C5+oC1ScG2BsPVuVowh+t7NQBwoS6X9Djp4et5ZWAYcEayQD2aFiAS/Y6IKg4PCK1JIiWyyDTE+SCqm4KAjUp1WsTxPmOIa2jyXnC08a03XBSAE1+4CJslH+tQuUNUPltzQHJJs23rDmKyzQVL1k6HGb2TPKIvdRmh9zuev3ZifAk/wa/U2lS4ZqGbMarrbGlIQYs7cvbzgAn4Hw==
signature_date    : 2022-07-23T19:06:21.572188
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

from setuphelpers import *
import platform

# additional options for msi install cusomization
msi_properties = {"ADDLOCAL": "CLI"}


def install():
    bin_contains = "TortoiseSVN"
    binary = glob.glob(f"{bin_contains}*.msi")[0]
    install_msi_if_needed(binary, properties=msi_properties)

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


def update_package():
    # Declaring local variables
    if control.architecture == "x64":
        arch = control.architecture
    else:
        arch = "win32"
    bin_contains = "TortoiseSVN"
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url = "https://tortoisesvn.net/downloads.html"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", "class", "btn", timeout=10):
        if bin_contains in bs_search["href"] and arch in bs_search["href"]:
            version = bs_search["href"].split("-")[1]
            latest_bin = bs_search["href"].split("/")[-2]
            download_url = bs_search["href"]
            break
    print("URL used is: %s" % download_url)
    for bs_search2 in bs_find_all(download_url, "a", "class", "mirror_link", timeout=10):
        if bin_contains in bs_search2["href"] and arch in bs_search["href"]:
            # version = bs_search2["href"].split("-")[1]
            # latest_bin = bs_search2["href"].split("/")[-2]
            download_url2 = "https://fr.osdn.net/" + bs_search2["href"]
            break
        print("Latest %s version is: %s" % (app_name, version))
        print("Download URL is: %s" % download_url2)
    # Downloading latest binaries
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url2, latest_bin)
    else:
        print("Binary is present: %s" % latest_bin)

    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()
    # Deleting outdated binaries
    remove_outdated_binaries(version)
    # Validating or not update-package-sources
    return result

7c1918ee50f6e5bd253aad0a7a26b915cafb730aa897669881cbaccbb00f45ad : setup.py
b6f381a212c40f65d5f5715c0eb1048975479123bb1609828b89895991631200 : TortoiseSVN-1.14.3.29387-win32-svn-1.14.2.msi
0511a37f2f39cb28dbf4c4ac7c24bb25cc960b094ae3baf827b7493abfa35509 : update_package.py
af22ffab9f39e29286075b3ad95c4ee1a40c24a150bec41176965386d61f0750 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
7a6b1f37f40d03169817b8e7a84484f74eb6dd4ef3002778cab77c493049ee20 : luti.json
f63c5041b15d5ad64b24cf79bda8ed59f6520561a68e50140ea3fa2f00d3f93a : WAPT/control