Détails du package
smp-urbackup-client
Revenir à la liste des packages
Version officielle sur le site de l'editeur : 2.4.11
Fichier control :
package : smp-urbackup-client
version : 2.4.10-1
architecture : all
section : base
priority : optional
name :
categories :
maintainer : Simon Fonteneau
description : UrBackup is an easy to setup Open Source client/server backup system, that through a combination of image and file backups accomplishes both data safety ...
depends :
conflicts :
maturity :
locale :
target_os : windows
min_os_version : 6.0
max_os_version :
min_wapt_version :
sources :
installed_size :
impacted_process : UrBackupClient.exe
description_fr :
description_pl :
description_de :
description_es :
description_pt :
description_it :
description_nl :
description_ru :
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : 9275ced2-2796-43ea-9381-28a7ec7ef1d2
valid_from :
valid_until :
forced_install_on :
changelog :
signer : wapt.lesfourmisduweb.org
signer_fingerprint: 1e54425be03a2a3ea1a264b40d984c31f17a6a489a3b722acb993cbf6561e903
signature : Vii0DjVH9pMat4IFaBP6GGhViVq6qIZp9zaNsu2xPepmrF7peU7Irpc8bLEtczZif8lCO3kpuduo13p2u5hewywqcOPHl3Sjx7NDFa+CCV/SImS1a4y8vgbcITgldQAeB6iTKMhewKr//ONNf9rDuWkMGKHJXiJj9xhxsj/uLbvln7zU82pNzsquWbI/pV19HZ9T/UxQnEIbrdonRvsx9aIanfctPP4k1vV7tYnWObBRWQbOal3GlFVn3rFU4AXPD28RYdfEyYKqdBGadepMhgzNbLOWdXkDjZJ1zpxhnCmehYQx/pjikK67cAeR+E3x+obEsPPdZEEM4mze6vBJ0w==
signature_date : 2020-07-04T01:21:49.925100
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,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes
Fichier setup.py :
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
if windows_version()>=Version('6.0'):
print('installing urbackup-client')
versionpaquet = control['version'].split('-',1)[0]
install_exe_if_needed("UrBackup Client %s.exe" % versionpaquet,'/S',key='UrBackup',min_version=versionpaquet)
def update_package():
htmlsource = wgets('https://www.urbackup.org/').splitlines()
for line in htmlsource:
if '.exe' in line :
if 'Client' in line :
lastestversion = line[line.find('Client/') + 7:line.find('/UrBackup')]
filename = "UrBackup Client %s.exe" % lastestversion
link = 'https://' + line[line.find('hndl'):-2]
break
print('Lastest Version : ' + lastestversion)
if not isfile(filename):
print('Download ' + filename)
wget(link,filename)
else:
print(filename + ' already exists')
allexe = glob.glob('*.exe')
for exe in allexe:
if exe != filename :
print('Delete ' + exe)
remove_file(exe)
os.chdir(os.path.dirname(__file__))
from waptpackage import PackageEntry
pe = PackageEntry()
pe.load_control_from_wapt(os.getcwd())
pe.version = lastestversion + '-0'
pe.save_control_to_wapt(os.getcwd())
if __name__ == '__main__':
update_package()