diff options
author | Koen Kooi <koen@openembedded.org> | 2009-07-22 10:28:45 +0200 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-07-22 10:28:45 +0200 |
commit | 11f327a4705f281e32b44ebb401f6e6d5ad0211c (patch) | |
tree | 50ac924f313f50ae4e0682870ef6e2705c542b89 /classes/base.bbclass | |
parent | 4223c584f1597b7e9d3f9c77ef4907e242eff9c4 (diff) |
base bbclass: try to find the git binaries in PATH instead of BBPATH
* Also, how do I get the build banner back? This bug went unnoticed due to it being gone
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r-- | classes/base.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index bc50c67d4b..9c51c0a08e 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -885,7 +885,7 @@ def base_get_metadata_svn_revision(path, d): def base_get_metadata_git_branch(path, d): import os - branch = os.popen('cd %s; PATH=%s git symbolic-ref HEAD 2>/dev/null' % (path, d.getVar("BBPATH", 1))).read().rstrip() + branch = os.popen('cd %s; PATH=%s git symbolic-ref HEAD 2>/dev/null' % (path, d.getVar("PATH", 1))).read().rstrip() if len(branch) != 0: return branch.replace("refs/heads/", "") @@ -893,7 +893,7 @@ def base_get_metadata_git_branch(path, d): def base_get_metadata_git_revision(path, d): import os - rev = os.popen("cd %s; PATH=%s git show-ref HEAD 2>/dev/null" % (path, d.getVar("BBPATH", 1))).read().split(" ")[0].rstrip() + rev = os.popen("cd %s; PATH=%s git show-ref HEAD 2>/dev/null" % (path, d.getVar("PATH", 1))).read().split(" ")[0].rstrip() if len(rev) != 0: return rev return "<unknown>" |