tis-git

2.26.0-1
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
3144 downloads
Download

  Description 

  • package : tis-git
  • version : 2.26.0-1
  • architecture : x86
  • categories : Development,Utilities
  • maintainer : WAPT Team,Jimmy PELÉ
  • description : Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
  • locale :
  • target_os : windows
  • min_os_version : 6.1
  • max_os_version :
  • min_wapt_version : 1.5
  • sources : https://github.com/git-for-windows/git/releases
  • installed_size : 251357568
  • impacted_process : git-bash.exe
  • description_fr : Git est un logiciel de gestion de versions décentralisé
  • description_pl : Git – rozproszony system kontroli wersji.
  • description_de : Git ist eine freie Software zur verteilten Versionsverwaltung von Dateien.
  • description_es : Git es un software de control de versiones
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Software Freedom Conservancy
  • licence : GPLv2
  • signature_date : 2020-05-18T09:48:55.412000
  • Homepage : https://git-scm.com/

  Setup.py 

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

uninstallkey = []

# Declaring specific app values (TO CHANGE)
bin_name_string = 'Git-%s-32-bit.exe'
bin_end = '-32-bit.exe'
silent_arguments = '/LOADINF="git.inf" /VERYSILENT /CLOSEAPPLICATIONS /NORESTART'
uninstall_key = 'Git_is1'


def install():
    # Specific app values
    package_version = control.version.split('-',1)[0]

	# Getting the used storage on programfiles before installation (place it on the top)
    diskfreespacebefore = get_disk_free_space(programfiles)

    #print(uninstall_key)
    install_exe_if_needed(bin_name_string % package_version
        ,silentflags=silent_arguments
        ,key=uninstall_key
        ,min_version=package_version)

	# Return used storage of the installation. (place it on the bottom)
    diskfreespaceafter = get_disk_free_space(programfiles)
    difffreespace = diskfreespacebefore - diskfreespaceafter
    print ("Storage used: " + str(difffreespace))


def update_package():
    print('Download/Update package content from upstream binary sources')
    import json,platform

    # Update transition from BeautifulSoup 3 to 4
    try:
        import bs4 as BeautifulSoup
    except:
        import BeautifulSoup

    # Getting proxy informations from WAPT settings
    proxy = {}
    if platform.system()=='Windows' and isfile(makepath(application_data(),'waptconsole','waptconsole.ini')):
        proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
        if proxywapt :
            proxy = {'http':proxywapt,'https':proxywapt}

    # Specific app values
    app_name = control.name
    url_api = 'https://api.github.com/repos/git-for-windows/git/releases/latest'

    # Getting latest informations from Github API
    json_load = json.loads(wgets(url_api,proxies=proxy))

    for download in json_load['assets']:
        if download['browser_download_url'].endswith(bin_end):
            url_dl = download['browser_download_url']
            break

    version = ((json_load['tag_name']).replace('.windows.1','')).replace('v','')
    latest_bin = bin_name_string % version

    print('Latest ' + app_name + ' version is: ' + version)
    print('Download url is: ' + url_dl)

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: ' + latest_bin)
        wget(url_dl,latest_bin,proxies=proxy)

		# Change version of the package
        print('Writing ' + version + '-0 in WAPT\\control')
        from waptpackage import PackageEntry
        pe = PackageEntry()
        pe.load_control_from_wapt(os.getcwd())

        pe.version = version + '-0'
        pe.save_control_to_wapt(os.getcwd())
        print('Update package done. You can now build-upload your package')
    else:
        print('This package is already up-to-date')

    # Deleting outdated binaries
    for bin_in_dir in glob.glob('*.exe') or glob.glob('*.msi'):
        if bin_in_dir != latest_bin :
            print('Outdated binary: ' + bin_in_dir + ' Deleted')
            remove_file(bin_in_dir)


if __name__ == '__main__':
    update_package()


										

  Changelog 


https://github.com/git/git/blob/master/Documentation/RelNotes/2.23.0.txt
  manifest.sha256 
[["Git-2.26.0-32-bit.exe","8d5e451dffb0be07c128dc21338a365aa2c81c09036a065735b42e627d38e683"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],[".vscode/settings.json","7a50879cdebb2f179b6a22fc497c263a99aba65a8694f0f791985ca67d7dc012"],[".vscode/launch.json","a9a5d4f2034c62f5ee173b543fbce9852483abfe0db40027f09d17e9cf69debb"],["WAPT/icon.png","4a6e5031edc6e22a06cb5f12e89dea8738b88839c2cb99e2e7e0d9df345e2252"],["git.inf","8a5b7c77aaf7c363cff95f26e687326198dcae752f59420e237439d548e7a69d"],["setup.py","037bcd33a690cd84c906d2f2675a632f308c19965411e08870fb68e4e667b801"],["WAPT/wapt.psproj","fdd9db03cb28a75c9b2af4f5154e55cce7feaa098404f37d3fe5c6cdfb483729"],["WAPT/control","a9df8465dfc688e0441e302f00c0902bc11129a25ca1cf9cc3a2e985e590992d"],["WAPT/changelog.txt","ba10f9ec6a911bd2e35a51dc0be36ad2fed4447a75bb91e506e3e1ec158d85c6"]]