gitver: add missing import
authorChris Larson <chris_larson@mentor.com>
Thu, 14 Oct 2010 00:35:04 +0000 (17:35 -0700)
committerChris Larson <chris_larson@mentor.com>
Thu, 14 Oct 2010 00:35:04 +0000 (17:35 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/gitver.bbclass

index 2efb3f1..de182a0 100644 (file)
@@ -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: