[MacPorts] #33889: github-1.0: add rss-type of livecheck for commit hashes diretly sent to the group

MacPorts noreply at macports.org
Tue Apr 3 23:35:35 PDT 2012


#33889: github-1.0: add rss-type of livecheck for commit hashes diretly sent to the
group
-------------------------------------------+--------------------------------
 Reporter:  sean.michael.farley@…          |       Owner:  macports-tickets@…                   
     Type:  enhancement                    |      Status:  new                                  
 Priority:  Normal                         |   Milestone:                                       
Component:  base                           |     Version:  2.0.4                                
 Keywords:  github-1.0                     |        Port:                                       
-------------------------------------------+--------------------------------
Changes (by ryandesign@…):

 * cc: ryandesign@… (added)


Comment:

 The situation shouldn't ever arise that github.version would be set to a
 git hash. Using a hash as a version number is problematic because it does
 not necessarily numerically increase, which means the port author would
 have to increase the epoch with many updates. github.version should be the
 dotted-decimal-formatted version number of the software, or if none
 exists, then some other number that generally increases, such as a date
 string (see for example the VillainousStyle port).

 But I am pleased that there is a way to check the github commit log by
 RSS. Rather than decide whether to do this based on the length of the
 version, we should perhaps check whether fetch.type is git and git.branch
 is a valid hash (note: git hashes don't have to be 40 characters; they
 could be abbreviated). We then have two choices: we could set
 livecheck.version to git.branch and pull the new latest git hash out of
 the RSS feed and display those in the livecheck. Or we could assume that
 the version number is a date string and pull the date of the latest commit
 out of the RSS feed and display those in the livecheck.

-- 
Ticket URL: <https://trac.macports.org/ticket/33889#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list