Update to 60.4.0

master
Daniel Berteaud 6 years ago
parent 3fdd1e702d
commit d1589f254c
  1. 4
      WAPT/control
  2. 13
      setup.py
  3. BIN
      win32/Thunderbird Setup 60.3.2.exe
  4. BIN
      win32/Thunderbird Setup 60.4.0.exe
  5. BIN
      win64/Thunderbird Setup 60.3.2.exe
  6. BIN
      win64/Thunderbird Setup 60.4.0.exe
  7. BIN
      win64/win32/Thunderbird Setup 60.3.2.exe

@ -1,5 +1,5 @@
package : fws-thunderbird package : fws-thunderbird
version : 60.3.2-3 version : 60.4.0-7
architecture : all architecture : all
section : base section : base
priority : optional priority : optional
@ -7,7 +7,7 @@ maintainer : Daniel Berteaud
description : Mozilla Thunderbird email client description : Mozilla Thunderbird email client
depends : depends :
conflicts : conflicts :
maturity : PROD maturity : PREPROD
locale : fr locale : fr
target_os : windows target_os : windows
min_os_version : 6.1 min_os_version : 6.1

@ -72,14 +72,12 @@ def update_package():
filename = '' filename = ''
url = requests.head('https://download.mozilla.org/?product=thunderbird-latest').headers['Location'] url = requests.head('https://download.mozilla.org/?product=thunderbird-latest').headers['Location']
filename = urlparse.unquote(url.rsplit('/',1)[1]) exe = urlparse.unquote(url.rsplit('/',1)[1])
version = re.findall(r'Thunderbird Setup (.*)\.exe',filename)[0] version = re.findall(r'Thunderbird Setup (.*)\.exe',exe)[0]
control = PackageEntry().load_control_from_wapt ('.') control = PackageEntry().load_control_from_wapt ('.')
if Version(version) > Version(control['version'].split('-',1)[0]):
print('Updating package to %s' % version)
for arch in ['32','64']: for arch in ['32','64']:
filename = makepath('win%s' % arch, filename) filename = makepath('win%s' % arch, exe)
url = 'https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/%s/win%s/fr/Thunderbird%sSetup%s%s.exe' % (version,arch,'%20','%20',version) url = 'https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/%s/win%s/fr/Thunderbird%sSetup%s%s.exe' % (version,arch,'%20','%20',version)
if not isfile(filename): if not isfile(filename):
print('Downloading %s from %s'%(filename,url)) print('Downloading %s from %s'%(filename,url))
@ -87,11 +85,14 @@ def update_package():
# removes old exe # removes old exe
if isfile(filename): if isfile(filename):
exes = glob.glob(r'x%s\Thunderbird*.exe' % arch) exes = glob.glob(r'win%s\Thunderbird*.exe' % arch)
for fn in exes: for fn in exes:
if fn != filename: if fn != filename:
remove_file(fn) remove_file(fn)
if Version(version) > Version(control['version'].split('-',1)[0]):
print('Updating package to %s' % version)
# updates control version from filename, increment package version. # updates control version from filename, increment package version.
control.version = '%s-%s'%(re.findall(r'Thunderbird Setup (.*)\.exe',filename)[0],int(control.version.split('-',1)[1])+1) control.version = '%s-%s'%(re.findall(r'Thunderbird Setup (.*)\.exe',filename)[0],int(control.version.split('-',1)[1])+1)
control.save_control_to_wapt('.') control.save_control_to_wapt('.')

BIN
win32/Thunderbird Setup 60.3.2.exe (Stored with Git LFS)

Binary file not shown.

BIN
win32/Thunderbird Setup 60.4.0.exe (Stored with Git LFS)

Binary file not shown.

BIN
win64/Thunderbird Setup 60.3.2.exe (Stored with Git LFS)

Binary file not shown.

BIN
win64/Thunderbird Setup 60.4.0.exe (Stored with Git LFS)

Binary file not shown.

Binary file not shown.
Loading…
Cancel
Save