diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-09 11:30:39 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-11 10:30:57 +0100 |
| commit | 3ae4dd140a76acb64d776be925f5e56ac67746e0 (patch) | |
| tree | 8df28cb08b9e802b3a43a7420f2df72ce520788d | |
| parent | 5266670b2da48cccc9f042ca7afc7f86d7ff89ae (diff) | |
| download | poky-3ae4dd140a76acb64d776be925f5e56ac67746e0.tar.gz | |
buildcfg: Drop unused svn revision function
This isn't used anywhere and everyone is using git now, the functions
are now hardcoded as such too. Drop this function.
(From OE-Core rev: 09ba96a2d7fa02c7a82758bbf4109b04ffca2c55)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oe/buildcfg.py | 11 |
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): | |||
| 13 | def get_scmbasepath(d): | 13 | def get_scmbasepath(d): |
| 14 | return os.path.join(d.getVar('COREBASE'), 'meta') | 14 | return os.path.join(d.getVar('COREBASE'), 'meta') |
| 15 | 15 | ||
| 16 | def 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 | |||
| 27 | def get_metadata_git_branch(path, d): | 16 | def 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) |
