summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/buildcfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/buildcfg.py')
-rw-r--r--meta/lib/oe/buildcfg.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/meta/lib/oe/buildcfg.py b/meta/lib/oe/buildcfg.py
index a7549f1e22..364c40a2f0 100644
--- a/meta/lib/oe/buildcfg.py
+++ b/meta/lib/oe/buildcfg.py
@@ -13,17 +13,6 @@ def detect_branch(d):
13def get_scmbasepath(d): 13def get_scmbasepath(d):
14 return os.path.join(d.getVar('COREBASE'), 'meta') 14 return os.path.join(d.getVar('COREBASE'), 'meta')
15 15
16def get_metadata_svn_revision(path, d):
17 # This only works with older subversion. For newer versions
18 # this function will need to be fixed by someone interested
19 revision = "<unknown>"
20 try:
21 with open("%s/.svn/entries" % path) as f:
22 revision = f.readlines()[3].strip()
23 except (IOError, IndexError):
24 pass
25 return revision
26
27def get_metadata_git_branch(path, d): 16def get_metadata_git_branch(path, d):
28 try: 17 try:
29 rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path) 18 rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path)