tis-pidgin
2.14.1-21
Instant Messaging for Jabber, AIM, Sametime, XMPP, GTK libraries and Rocket.chat plugin
6125 downloads

Description
- package : tis-pidgin
- version : 2.14.1-21
- architecture : all
- categories :
- maintainer : Simon Fonteneau
- description : Instant Messaging for Jabber, AIM, Sametime, XMPP, GTK libraries and Rocket.chat plugin
- locale :
- target_os :
- min_wapt_version :
- sources :
- installed_size :
- impacted_process : pidgin.exe
- description_fr : Messagerie instantanee pour Jabber, AIM, Sametime, XMPP, inclus les librairies GTK et le plugin Rocket.chat
- description_pl :
- description_de :
- description_es :
- description_pt :
- description_it :
- description_nl :
- description_ru :
- editor :
- licence :
- signature_date : 2020-07-22T09:33:29.532222
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('installing Pidgin')
versionsoft = control['version'].split('-',1)[0]
install_exe_if_needed('pidgin-%s-offline.exe' % versionsoft,'/S','Pidgin',versionsoft)
def update_package():
proxies = {}
if isfile(makepath(user_local_appdata(),'waptconsole','waptconsole.ini')):
proxywapt = inifile_readstring(makepath(user_local_appdata(),'waptconsole','waptconsole.ini'),'global','http_proxy')
if proxywapt :
proxies = {'http':proxywapt,'https':proxywapt}
import re,requests,glob
url = requests.head('https://sourceforge.net/projects/pidgin/files/latest/download?source=typ_redirect',proxies=proxies).headers['Location']
dst = requests.head(url,proxies=proxies).headers['Location']
dstexe = dst.replace('-dbgsym.zip','-offline.exe')
filename = dstexe.rsplit('/',1)[1]
exes = glob.glob('*.exe')
for fn in exes:
if fn != filename:
remove_file(fn)
if not isfile(filename):
print('Downloading %s from %s'%(filename,dstexe))
wget(dstexe,filename,proxies=proxies)
else:
print('Already up to date, skipped')
vers = get_file_properties(filename)['ProductVersion']
control.version = vers + '-20'
control.save_control_to_wapt()