Update to 2.24.0

master
Daniel Berteaud 5 years ago
parent f56d8441f4
commit 73117b7bac
  1. BIN
      Git-2.23.0-32-bit.exe
  2. BIN
      Git-2.23.0-64-bit.exe
  3. BIN
      Git-2.24.0-32-bit.exe
  4. BIN
      Git-2.24.0-64-bit.exe
  5. 18
      WAPT/control
  6. 32
      setup.py

BIN
Git-2.23.0-32-bit.exe (Stored with Git LFS)

Binary file not shown.

BIN
Git-2.23.0-64-bit.exe (Stored with Git LFS)

Binary file not shown.

BIN
Git-2.24.0-32-bit.exe (Stored with Git LFS)

Binary file not shown.

BIN
Git-2.24.0-64-bit.exe (Stored with Git LFS)

Binary file not shown.

@ -1,13 +1,15 @@
package : fws-git package : fws-git
version : 2.23.0-2 version : 2.24.0-1
architecture : all architecture : all
section : base section : base
priority : optional priority : optional
name :
categories :
maintainer : Daniel Berteaud maintainer : Daniel Berteaud
description : Git for Windows description : Git for Windows
depends : fws-notepadplusplus depends : fws-notepadplusplus
conflicts : conflicts :
maturity : PROD maturity : PREPROD
locale : all locale : all
target_os : windows target_os : windows
min_os_version : 6.1 min_os_version : 6.1
@ -25,8 +27,12 @@ editor :
keywords : keywords :
licence : GPLv2+ licence : GPLv2+
homepage : https://gitforwindows.org/ homepage : https://gitforwindows.org/
package_uuid : package_uuid : fd2e4c25-f3bc-4e6b-84fe-4cf2feb1fae4
valid_from :
valid_until :
forced_install_on :
signer : Daniel Berteaud signer : Daniel Berteaud
signer_fingerprint: signer_fingerprint: 3c9415559e2dedbc4390e3faa2c28d3b67265baa5b35902d2764d9e41c3b3f0a
signature_date : signature : 3UMHqHfZmzgfAxgYoM2SI0/mBUhAPgX866go7uH5f60kOgLt7ltF9onW0aeVs2lzORReMyOQIDYrSyfWks38VSWjaGWUIwINa5vNqbpG70wct55s2OF6sCPwW2rTVYnB3FX9wuXNW7+u/MAADDgWZ1t7LqD7dGUXEkrvxfuR7LcIvlednQqqhMlO3i4EjnBX0tpEMjco5Z3NKpK8FmH23mQVWAwvXYWifavQLmMlXFrRk/HMDA0yopvrAcXtB5uQnosKz21LcBOHF6Avoi/nI3eXTYs4n+NVSCE9nClWGgabwZXTgKZFOGilPaJWN3yZoHwQXZiJvkYyOvgVNhOUoQ==
signed_attributes : signature_date : 2019-11-05T13:24:57.951000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,signer,signer_fingerprint,signature_date,signed_attributes

@ -17,24 +17,26 @@ def install():
def update_package(): def update_package():
import re import re
print('Updating Git Package')
latest = json.loads(requests.get('https://api.github.com/repos/git-for-windows/git/releases/latest').text.encode('utf-8')) latest = json.loads(requests.get('https://api.github.com/repos/git-for-windows/git/releases/latest').text.encode('utf-8'))
version = re.search('v(.*)\.windows\.1', latest['tag_name']).group(1) latest_version = re.search('v(.*)\.windows\.1', latest['tag_name']).group(1)
pe = PackageEntry(); pe = PackageEntry();
control = pe.load_control_from_wapt('.') control = pe.load_control_from_wapt('.')
print('Last version is %s' % version) current_version = control['version'].split('-',1)[0]
for arch in ['32','64']:
for asset in latest['assets']: if Version(latest_version) > Version(current_version):
if asset['name'] == 'Git-%s-%s-bit.exe' %(version,arch) and not isfile('Git-%s-%s-bit.exe' % (version,arch)): print('Updateing package from %s to %s' % (current_version, latest_version))
url = asset['browser_download_url'] for arch in ['32','64']:
print('Downloading Git %s for win%s from %s' % (version,arch,url)) for asset in latest['assets']:
wget(url,asset['name']) if asset['name'] == 'Git-%s-%s-bit.exe' % (latest_version, arch) and not isfile('Git-%s-%s-bit.exe' % (latest_version, arch)):
for old in glob.glob(r'Git-*-%s-bit.exe' % arch): url = asset['browser_download_url']
if not old == 'Git-%s-%s-bit.exe' %(version,arch): print('Downloading Git %s for win%s from %s' % (latest_version, arch, url))
remove_file(old) wget(url,asset['name'])
for old in glob.glob(r'Git-*-%s-bit.exe' % arch):
if not old == 'Git-%s-%s-bit.exe' % (latest_version, arch):
remove_file(old)
if Version(version) > Version(control['version'].split('-',1)[0]): print('Updating control file with new version %s' % latest_version)
print('Updating control file with new version %s' % version) pe.version = latest_version + '-0'
pe.version = version + '-0'
pe.maturity = 'PREPROD' pe.maturity = 'PREPROD'
pe.save_control_to_wapt('.') pe.save_control_to_wapt('.')
Loading…
Cancel
Save