tis-naps2 5.8.2-2

  • package : tis-naps2
  • version : 5.8.2-2
  • architecture : all
  • locale :
  • description : Logiciel libre permettant de scanner des documents, les ├ęditer et les convertir vers le format PDF et d'autres extensions.
  • maintainer : Simon Fonteneau
  • date : 2018-07-05 11:13:35
  • min_wapt_version :
  • min_os_version :
  • max_os_version :
  • impacted_process :

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = ['NAPS2 (Not Another PDF Scanner 2)_is1']

def install():

    versionpaquet = control['version'].split('-',1)[0]
    def versnaps2(key):
        return key['name'].replace('NAPS2 ','')
    install_exe_if_needed('naps2-%s-setup.exe' % versionpaquet ,silentflags='/VERYSILENT',key='NAPS2 (Not Another PDF Scanner 2)_is1',min_version=versionpaquet,get_version=versnaps2)



def update_package():

    import requests,urlparse
    url = requests.head('https://sourceforge.net/projects/naps2/files/latest/download?source=typ_redirect',proxies={}).headers['Location']
    dstexe = requests.head(url,proxies={}).headers['Location']
    filename = urlparse.unquote(dstexe.rsplit('/',1)[1])

    vers = filename.replace('-setup.exe','').replace('naps2-','')
    print ("Latest Version : " + vers)

    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)
    else:
        print('Already up to date, skipped')

    os.chdir(os.path.dirname(__file__))

    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())

    pe.version = vers + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()

    

Changelog

No changelog
    

manifest.sha256

WAPT/icon.png 7fcdebc39e98a96eed54a99ab5797d18d48fa23520c3e4b25a296cb45a9c92c9
WAPT/certificate.crt 13fb474c5c23c135a77aba592eb8821b9ecbcc463f5b7312312b87b20eac6779
WAPT/wapt.psproj df3e2fa87fea9c7bdfcc22039b9ef7303f092898882d9f3f4233f5d92f90b3c7
setup.py 6aadacab886c25ffbc53a998482c99079ae205ed7e2bd2c36b99a2890b72d8b6
naps2-5.8.2-setup.exe 618982ec0e819c2427239ade48d5336156081546043b98dcdebda9419b351eb5
WAPT/control 82396c2918025639aec4ee29fcd8ef458bd65811f033d0d394958abfd10fb87f