Ticket #155: SvnInstallFail.patch
File SvnInstallFail.patch, 2.1 KB (added by Caligari, 16 years ago) |
---|
Patch to install-from-workspace |
-
Source/InstallFromWorkspace.cobra
476 476 477 477 # TODO: readme file? 478 478 parent = Path.getFullPath('..') 479 480 versionOutput = '' 481 if File.exists('[parent][slash]InformalRelease.text') 482 versionOutput = File.readAllText('[parent][slash]InformalRelease.text') 483 else 484 # record "svn info" in the installation directory 485 try 486 process as Process? 487 versionOutput = .runCommand('svn', 'info', out process, false) 488 if process.exitCode 489 print '"snv info" failed. Check your svn installation.' 490 print '[versionOutput]' 491 print 492 .error('Cannot find version information, installation halted.') 493 catch ex as SystemException 494 # user could be on TortoiseSVN 495 print 'svn is not installed or it is not in the PATH. ' + ex.message 496 .error('Cannot find version information, installation halted.') 497 if versionOutput <> '' 498 fileName = '[versionDir][slash]Version.text' 499 print 'writing :', fileName 500 File.writeAllText(fileName, versionOutput) 501 print 502 479 503 for dir in ['HowTo', 'Reusables', 'Samples', 'Supplements'] 480 504 .copyContents('[parent][slash][dir]', '[versionDir][slash][dir]') 481 505 … … 509 533 f.writeLine('@"[versionDir][slash]bin[slash]cobra.exe" %*') 510 534 print 511 535 512 output = ''513 if File.exists('[parent][slash]InformalRelease.text')514 output = File.readAllText('[parent][slash]InformalRelease.text')515 else516 # record "svn info" in the installation directory517 try518 output = .runCommand('svn', 'info', false)519 catch ex as SystemException520 # user could be on TortoiseSVN521 print 'svn is not installed or it is not in the PATH. ' + ex.message522 if output <> ''523 fileName = '[versionDir][slash]Version.text'524 print 'writing :', fileName525 File.writeAllText(fileName, output)526 print527 528 536 def verifyNewlyInstalledCobra 529 537 .startStage('Verify newly installed Cobra compiler') 530 538 output = .runCommand(_cobraCommandPath, '-about', true)