Changeset 5442 for trunk/GSASIIctrlGUI.py
- Timestamp:
- Dec 20, 2022 3:17:16 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIctrlGUI.py ¶
r5394 r5442 5458 5458 '''Check if the GSAS-II repository has an update for the current source files 5459 5459 and perform that update if requested. 5460 ''' 5460 ''' 5461 5461 if not GSASIIpath.whichsvn(): 5462 5462 dlg = wx.MessageDialog(self.frame, … … 5494 5494 dlg.Destroy() 5495 5495 return 5496 errmsg,warnmsg = G2gd.TestOldVersions() 5497 if (errmsg or warnmsg): 5498 msg = 'Based on the age of Python or an installed Python package (see below)' 5499 msg += ' you are recommended to' 5500 if GSASIIpath.condaTest(): 5501 msg += ' either use conda to update (see https://bit.ly/G2pkgs for version recommendations) and then update GSAS-II. Or' 5502 msg += ' reinstall GSAS-II (see https://bit.ly/G2install), which will update both.\n\n' 5503 if errmsg: 5504 opt = wx.YES_NO|wx.ICON_QUESTION|wx.CANCEL|wx.NO_DEFAULT 5505 msg += 'Error(s):\n\t'+errmsg 5506 else: 5507 opt = wx.YES_NO|wx.ICON_QUESTION|wx.CANCEL|wx.YES_DEFAULT 5508 if warnmsg: 5509 if errmsg: msg += '\n\nWarning(s):\n\t' 5510 msg += warnmsg 5511 5512 msg += '\n\nContinue to update GSAS-II?' 5513 dlg = wx.MessageDialog(self.frame, msg,'Confirm update',opt) 5514 result = wx.ID_NO 5515 try: 5516 result = dlg.ShowModal() 5517 finally: 5518 dlg.Destroy() 5519 if result != wx.ID_YES: return 5496 5520 print ('GSAS-II version on server: '+repos) 5497 5521 if local == repos: … … 5536 5560 'conflicts arise, local changes will be ' 5537 5561 'discarded. It is also possible that the ' 5538 ' local changesmay prevent GSAS-II from running. '5562 'merge may prevent GSAS-II from running. ' 5539 5563 '\n\nPress OK to start an update if this is acceptable:', 5540 5564 'Local GSAS-II Mods', … … 5603 5627 'if merging is not possible, your local changes will be ' 5604 5628 'discarded. It is also possible that the ' 5605 ' local changes my prevent GSAS-II from running. '5629 'merge may prevent GSAS-II from running. ' 5606 5630 'Press OK to continue anyway.', 5607 5631 'Local GSAS-II Mods',
Note: See TracChangeset
for help on using the changeset viewer.