1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-18 07:15:13 -05:00

Merge pull request #367 from WebSpider/dev-version_info_page

Expose commit hash on infopage
This commit is contained in:
Nils 2014-05-05 00:53:09 +02:00
commit 1f618bf47c
3 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,7 @@
<div id="summary" class="align-left"> <div id="summary" class="align-left">
<table class="infoTable" cellspacing="1" border="0" cellpadding="0"> <table class="infoTable" cellspacing="1" border="0" cellpadding="0">
<tr><td class="infoTableHeader">SB Version: </td><td class="infoTableCell">TVRage ($sickbeard.version.SICKBEARD_VERSION) <!-- &ndash; build.date //--> <tr><td class="infoTableHeader">SB Version: </td><td class="infoTableCell">TVRage ($sickbeard.version.SICKBEARD_VERSION) / ($sickbeard.CUR_COMMIT_HASH) <!-- &ndash; build.date //-->
</td></tr> </td></tr>
<tr><td class="infoTableHeader">SB Config file: </td><td class="infoTableCell">$sickbeard.CONFIG_FILE</td></tr> <tr><td class="infoTableHeader">SB Config file: </td><td class="infoTableCell">$sickbeard.CONFIG_FILE</td></tr>
<tr><td class="infoTableHeader">SB Database file: </td><td class="infoTableCell">$db.dbFilename()</td></tr> <tr><td class="infoTableHeader">SB Database file: </td><td class="infoTableCell">$db.dbFilename()</td></tr>

View File

@ -96,6 +96,7 @@ NEWEST_VERSION = None
NEWEST_VERSION_STRING = None NEWEST_VERSION_STRING = None
VERSION_NOTIFY = None VERSION_NOTIFY = None
AUTO_UPDATE = None AUTO_UPDATE = None
CUR_COMMIT_HASH = None
INIT_LOCK = Lock() INIT_LOCK = Lock()
__INITIALIZED__ = False __INITIALIZED__ = False

View File

@ -400,6 +400,7 @@ class GitUpdateManager(UpdateManager):
logger.log(u"Output doesn't look like a hash, not using it", logger.ERROR) logger.log(u"Output doesn't look like a hash, not using it", logger.ERROR)
return False return False
self._cur_commit_hash = cur_commit_hash self._cur_commit_hash = cur_commit_hash
sickbeard.CUR_COMMIT_HASH = cur_commit_hash
return True return True
else: else:
return False return False