1. TortoiseHg
  2. TortoiseHg
  3. thg-winbuild

Commits

Steve Borho  committed 3097f4f

generate an INI file with web.cacerts to use during installer builds

  • Participants
  • Parent commits c63c116
  • Branches default

Comments (0)

Files changed (2)

File .hgignore

View file
 misc/ThgShellx??.dll
 misc/terminate.exe
 misc/cacert.pem
+build.ini
 *.pfx
 *~
 *.pyc

File setup.py

View file
     if '' in pp:
         pp.remove('')
     env['PYTHONPATH'] = ';'.join(pp)
-    env['HGRCPATH'] = ''
+    env['HGRCPATH'] = os.path.join(os.getcwd(), 'build.ini')
     return env
 
 installenv = get_environ()
     print 'fetching cacert.pem from', URL['cacert.pem']
     contents = urllib2.urlopen(URL['cacert.pem']).read()
     file(sslcertfile, 'wb').write(contents)
+if not os.path.exists('build.ini'):
+    file('build.ini', 'wb').write('[web]\ncacerts=%s\n' % os.path.abspath(sslcertfile))
 
 if dopull and not onlymsi:
     run(r'hg -R ../hg pull')