Add RC maturity in wapt.ini. This will deploy tested, but major upgrades
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
679 B

  1. #!/usr/bin/python
  2. from setuphelpers import *
  3. uninstallkey=[]
  4. newmaturity = 'RC'
  5. def install():
  6. if not newmaturity in WAPT.maturities:
  7. WAPT.maturities.append(newmaturity)
  8. inifile_writestring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities))
  9. def uninstall():
  10. if newmaturity in WAPT.maturities:
  11. WAPT.maturities.remove(newmaturity)
  12. inifile_writestring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities))
  13. if not inifile_readstring(WAPT.config_filename,'global','maturities',','.join(WAPT.maturities)) :
  14. inifile_deleteoption(WAPT.config_filename,'global','maturities')