Actions
Bug #1497
closedMissing TVHeadend version information
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2013-01-04
Due date:
% Done:
100%
Estimated time:
Found in version:
5d2197c30f
Affected Versions:
Description
On some systems the --dirty switch of git-describe is not available, so the instruction on the support/version Bash script:
# Calculate version if [ -d ".git" ]; then VER=$(cd $(dirname $0); git describe --dirty --match "v*" 2> /dev/null
fails because:
debian-x86:~/tvheadend/tvheadend# git-describe --dirty --match "v*"; echo $?
error: unknown option `dirty'
usage: git-describe [options] <committish>*
--contains find the tag that comes after the commit
--debug debug search strategy on stderr
--all use any ref in .git/refs
--tags use any tag in .git/refs/tags
--long always use long format
--abbrev[=<n>] use <n> digits to display SHA-1s
--exact-match only output exact matches
--candidates <n> consider <n> most recent tags (default: 10)
--match <pattern> only consider tags matching <pattern>
--always show abbreviated commit object as fallback
129
debian-x86:~/tvheadend/tvheadend# git-describe --match "v*"; echo $?
v3.3-183-g5d2197c
0
and the resulting version on TVHeadend Web UI is empty because:
debian-x86:~/tvheadend/tvheadend# cat src/version.c const char *tvheadend_version = "";
Please add error checking so that this specific case is provided.
Thanks.
Files
Actions