aboutsummaryrefslogtreecommitdiffstats
path: root/classes/gitver.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/gitver.bbclass')
-rw-r--r--classes/gitver.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/gitver.bbclass b/classes/gitver.bbclass
index 2efb3f1f5b..de182a09c6 100644
--- a/classes/gitver.bbclass
+++ b/classes/gitver.bbclass
@@ -6,6 +6,7 @@
# This is most useful in concert with srctree.bbclass.
def git_drop_tag_prefix(version):
+ import re
if re.match("v\d", version):
return version[1:]
else: