]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Fix missing argument
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 18 Dec 2009 12:13:32 +0000 (12:13 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 18 Dec 2009 12:13:32 +0000 (12:13 +0000)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/base.bbclass

index 048353170fed477b3d4e85bf6941a4c748d68d00..079a2d92058c3d6ad7a39685c89dee9a650a1c23 100644 (file)
@@ -791,8 +791,8 @@ def base_get_metadata_git_branch(path, d):
                return branch
        return "<unknown>"
 
-def base_get_metadata_git_revision(d):
-       rev = os.popen("cd %s; git log -n 1 --pretty=oneline --" % base_get_scmbasepath(d)).read().split(" ")[0]
+def base_get_metadata_git_revision(path, d):
+       rev = os.popen("cd %s; git log -n 1 --pretty=oneline --" % path).read().split(" ")[0]
        if len(rev) != 0:
                return rev
        return "<unknown>"