]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
buildcfg: Drop unused svn revision function
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Jun 2022 10:30:39 +0000 (11:30 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 11 Jun 2022 09:29:42 +0000 (10:29 +0100)
This isn't used anywhere and everyone is using git now, the functions
are now hardcoded as such too. Drop this function.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/buildcfg.py

index a7549f1e2292c1ba3d689d836e4217e164a15c0a..364c40a2f02936ee08513af93131bd0c455d9b59 100644 (file)
@@ -13,17 +13,6 @@ def detect_branch(d):
 def get_scmbasepath(d):
     return os.path.join(d.getVar('COREBASE'), 'meta')
 
-def get_metadata_svn_revision(path, d):
-    # This only works with older subversion. For newer versions 
-    # this function will need to be fixed by someone interested
-    revision = "<unknown>"
-    try:
-        with open("%s/.svn/entries" % path) as f:
-            revision = f.readlines()[3].strip()
-    except (IOError, IndexError):
-        pass
-    return revision
-
 def get_metadata_git_branch(path, d):
     try:
         rev, _ = bb.process.run('git rev-parse --abbrev-ref HEAD', cwd=path)