summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/classes/gitver.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/classes/gitver.bbclass b/meta-oe/classes/gitver.bbclass
index e7b5155ee..b677996ea 100644
--- a/meta-oe/classes/gitver.bbclass
+++ b/meta-oe/classes/gitver.bbclass
@@ -27,13 +27,13 @@ def get_git_pv(path, d, tagadjust=None):
27 gitdir = os.path.abspath(os.path.join(d.getVar("S", True), ".git")) 27 gitdir = os.path.abspath(os.path.join(d.getVar("S", True), ".git"))
28 try: 28 try:
29 ver = gitrev_run("git describe --tags", gitdir) 29 ver = gitrev_run("git describe --tags", gitdir)
30 except Exception, exc: 30 except Exception as exc:
31 bb.fatal(str(exc)) 31 bb.fatal(str(exc))
32 32
33 if not ver: 33 if not ver:
34 try: 34 try:
35 ver = gitrev_run("git rev-parse --short HEAD", gitdir) 35 ver = gitrev_run("git rev-parse --short HEAD", gitdir)
36 except Exception, exc: 36 except Exception as exc:
37 bb.fatal(str(exc)) 37 bb.fatal(str(exc))
38 38
39 if ver: 39 if ver: