tis-pgadmin 1.22.1-1

  • package : tis-pgadmin
  • version : 1.22.1-1
  • description : pgAdmin III 1.22. Uninstall older pgadminIII version and pgadminIV. If intalled on winXP, it installs pgadmin 18.1, the last supported version on that OS
  • maintainer : Hubert TOUVET, Amelie LE JEUNE
  • date : 2017-07-20 11:23:38
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112338
  • min_os_version :
  • min_wapt_version :

setup.py

# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
uninstallkey = []

def install():
    print('installing PG Admin')

    all_pgadmin = installed_softwares('pgadmin')
    if all_pgadmin:
        for pgadmin in all_pgadmin:
            if pgadmin['version'] < '1.22' :
                print "Uninstall %s (%s)" % (pgadmin['name'],pgadmin['version'])
                run(WAPT.uninstall_cmd(pgadmin['key']))


    if platform.win32_ver()[0].lower()=='xp':
        print ("os version is winXP, installing last supported version pgadmin 18.1")
        install_msi_if_needed('pgadmin3-18.1.msi',min_version='1.20')
    else:
        run('pgadmin3.msi /qn')

    

manifest

[["pgadmin3.msi", "5ceb61a877931680f7f2b3e8dd00fbe949b90d52"], ["setup.py", "2e48afd337ca170e2b621acb9726171422991885"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "b3f43b636b5844b5ba0f57623d1766693a800471"], ["WAPT/control", "675f0f95a89ea48fbbe407d850badddc557ab119"]]