Changeset 2866


Ignore:
Timestamp:
Jun 17, 2017 5:38:22 PM (4 years ago)
Author:
toby
Message:

update bootstrap.py to perform 'svn switch'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • install/bootstrap.py

    r2855 r2866  
    152152    print 'Unidentifed platform -- you probably will need to run scons to compile the fsource files'
    153153
     154cmd = [svn, 'info']
     155p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
     156res,err = p.communicate()
     157if '.xor.' in res:
     158    print('Switching previous install with .xor. download location to\n\thttps://subversion.xray.aps.anl.gov/pyGSAS')
     159    cmd = [svn, 'switch','--relocate','https://subversion.xor.aps.anl.gov/pyGSAS',
     160           'https://subversion.xray.aps.anl.gov/pyGSAS']
     161    p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
     162    res,err = p.communicate()
     163    if err:
     164        print('Please report this error to toby@anl.gov:')
     165        print(err)
     166        print(res)
     167       
    154168cmd = [svn, 'co', home+ 'trunk/', gsaspath, '--non-interactive', '--trust-server-cert']
    155169if proxycmds: cmd += proxycmds
Note: See TracChangeset for help on using the changeset viewer.