tis-git

2.24.0.2-3
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.
3147 downloads
Download

  Description 

  • package : tis-git
  • version : 2.24.0.2-3
  • architecture : x86
  • categories : Development,Utilities
  • maintainer : Tranquil IT Systems,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 : 266645504
  • impacted_process : git-bash.exe,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-02-27T21:33:14.062822
  • 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_name_joker = 'Git-*.exe'
silent_arguments = '/LOADINF="git.inf" /VERYSILENT /CLOSEAPPLICATIONS /NORESTART'
uninstall_key = 'Git_is1'
dl_link_nb = 0


def install():
    print('installing %s' % control.asrequirement())

    # Specific app values
    #package_version = control.get_software_version() # Do not use for now
    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('Update package content from upstream binary sources')
    from waptpackage import PackageEntry
    import requests,re

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

    # Getting proxy informations from WAPT settings
    proxy = {}
    if 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 = control.sources

    # Get latest version number from official website
    page = requests.get(url + '/latest',headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64)'}).text
    bs = BeautifulSoup.BeautifulSoup(page)
    # bs = BeautifulSoup.BeautifulSoup(page,features="html.parser") # For bs4 only
    bs_raw_string = str(bs.find('span',{'class':'css-truncate-target'}).text)
    noversion = bs_raw_string

    # Declaring binaries extension to download
    reg_bin = "(\.exe|\.msi)$" # $ mean the end of regex chain
    end_bin = re.compile(reg_bin)

    links = bs.findAll("a",{"href" : end_bin})
    part_url_dl = links[dl_link_nb]['href']
    #print(part_url_dl)

    url_dl = ('https://github.com' + part_url_dl)
    print('Download url is: ' + url_dl)

    latest_bin = part_url_dl.split('/')[-1]

    version = latest_bin.split('-')[1]

    print('Latest ' + app_name + ' version is: ' + version)

    # 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')
        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 
[["WAPT/icon.png","4a6e5031edc6e22a06cb5f12e89dea8738b88839c2cb99e2e7e0d9df345e2252"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","fdd9db03cb28a75c9b2af4f5154e55cce7feaa098404f37d3fe5c6cdfb483729"],["Git-2.24.0.2-32-bit.exe","45d094e1ad96d40de0900b09b57213316fb986476413c3f7049761dd3ac82392"],["git.inf","06437f383bf13ead60bfaa3876a6baf6e7fc1129d831656f0c864d872f2a9ca7"],["setup.py","a3fa8869b844fb9f0a584bb3bf3f1b975299c14e1bfbac32fa54dd3e18a3ecea"],["WAPT/control","91e572016a4788484ad8e5a8e591f652ac97cd44fbee2f30562f2a179b750371"],["WAPT/changelog.txt","ba10f9ec6a911bd2e35a51dc0be36ad2fed4447a75bb91e506e3e1ec158d85c6"]]