Changeset f7d2f4a in sasview for src/sas/guiframe


Ignore:
Timestamp:
Jul 1, 2015 1:23:35 AM (9 years ago)
Author:
trnielsen <torben.nielsen@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
24d3a40
Parents:
60d08fd
Message:

Ticket #443 - check_update now reads latest release version from Github

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/gui_manager.py

    raceae8c rf7d2f4a  
    2525import httplib 
    2626import traceback 
     27import urllib 
     28import urllib2 
    2729 
    2830 
     
    20412043        """ 
    20422044        try: 
    2043             conn = httplib.HTTPSConnection(config.__update_URL__[0], 
    2044                                           timeout=3.0) 
    2045             conn.request("GET", config.__update_URL__[1]) 
    2046             res = conn.getresponse() 
    2047             content = res.read() 
    2048             conn.close() 
     2045            req = urllib2.Request('https://github.com/SasView/sasview/releases/latest') 
     2046            res = urllib2.urlopen(req) 
     2047            get_url= res.geturl() 
     2048            content = get_url.partition('/v')[2] 
    20492049            logging.info("connected to GitHub. sasview.latestversion = %s" 
    20502050                         % (content)) 
Note: See TracChangeset for help on using the changeset viewer.