Changeset 4745 for install/bootstrap.py
- Timestamp:
- Jan 7, 2021 9:42:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
install/bootstrap.py
r4743 r4745 272 272 273 273 def svncleanup(spath): 274 cmd = [svn, 'cleanup', spath]275 s = subprocess.Popen(cmd,stderr=subprocess.PIPE)276 out,err = MakeByte2str(s.communicate())277 if err:278 print('subversion cleanup returned an error:')279 if out: print(out)280 if err: print(err)281 274 svntmp = os.path.join(spath,'.svn','tmp') 282 275 if not os.path.exists(svntmp): … … 285 278 s = subprocess.Popen(cmd,stderr=subprocess.PIPE) 286 279 out,err = MakeByte2str(s.communicate()) 280 if out: print(out) 281 if err: print(err) 282 cmd = [svn, 'cleanup', spath] 283 s = subprocess.Popen(cmd,stderr=subprocess.PIPE) 284 out,err = MakeByte2str(s.communicate()) 285 if err: 286 print('subversion cleanup returned an error:') 287 287 if out: print(out) 288 288 if err: print(err) … … 497 497 if not skipDownloadSteps: 498 498 # patch: switch GSAS-II location if linked to XOR server (relocated May/June 2017) 499 cmd = [svn, 'info' ]499 cmd = [svn, 'info',path2GSAS2] 500 500 p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE) 501 501 res,err = p.communicate() … … 503 503 print('Switching previous install with .xor. download location to\n\thttps://subversion.xray.aps.anl.gov/pyGSAS') 504 504 cmd = [svn, 'switch','--relocate','https://subversion.xor.aps.anl.gov/pyGSAS', 505 'https://subversion.xray.aps.anl.gov/pyGSAS' ]505 'https://subversion.xray.aps.anl.gov/pyGSAS',path2GSAS2] 506 506 if proxycmds: cmd += proxycmds 507 507 p = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE) … … 512 512 print(res) 513 513 # patch: switch GSAS-II location if switched to 2frame version (removed August 2017) 514 if '2frame' in str(res):514 elif '2frame' in str(res): 515 515 print('Switching previous 2frame install to trunk\n\thttps://subversion.xray.aps.anl.gov/pyGSAS') 516 516 cmd = [svn, 'switch',g2home + '/trunk',path2GSAS2, … … 524 524 print(err) 525 525 print(res) 526 elif 'not a working' not in str(res): 527 svncleanup(path2GSAS2) 526 528 527 529 print('\n'+75*'*')
Note: See TracChangeset
for help on using the changeset viewer.