diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-08 12:19:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:39 +0000 |
commit | f702509017c11f02c2c89ece4890ae5e9fbbbe84 (patch) | |
tree | 2bcaac55d094fdee7a45557d1cde6d1f789891f4 /meta | |
parent | a0618f5726376c34bbe356834e250a374bdcb718 (diff) | |
download | poky-f702509017c11f02c2c89ece4890ae5e9fbbbe84.tar.gz |
metadata_scm: Drop orphaned monotone functions
Its been 'a while' since we used monotone, drop these revision
function remnants.
(From OE-Core rev: f1c77ab87b3c16d14deff801f48292ed348da637)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/metadata_scm.bbclass | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/meta/classes/metadata_scm.bbclass b/meta/classes/metadata_scm.bbclass index 658e2f883b..58bb4c555a 100644 --- a/meta/classes/metadata_scm.bbclass +++ b/meta/classes/metadata_scm.bbclass | |||
@@ -12,30 +12,6 @@ def base_detect_branch(d): | |||
12 | def base_get_scmbasepath(d): | 12 | def base_get_scmbasepath(d): |
13 | return os.path.join(d.getVar('COREBASE'), 'meta') | 13 | return os.path.join(d.getVar('COREBASE'), 'meta') |
14 | 14 | ||
15 | def base_get_metadata_monotone_branch(path, d): | ||
16 | monotone_branch = "<unknown>" | ||
17 | try: | ||
18 | with open("%s/_MTN/options" % path) as f: | ||
19 | monotone_branch = f.read().strip() | ||
20 | if monotone_branch.startswith( "database" ): | ||
21 | monotone_branch_words = monotone_branch.split() | ||
22 | monotone_branch = monotone_branch_words[ monotone_branch_words.index( "branch" )+1][1:-1] | ||
23 | except: | ||
24 | pass | ||
25 | return monotone_branch | ||
26 | |||
27 | def base_get_metadata_monotone_revision(path, d): | ||
28 | monotone_revision = "<unknown>" | ||
29 | try: | ||
30 | with open("%s/_MTN/revision" % path) as f: | ||
31 | monotone_revision = f.read().strip() | ||
32 | if monotone_revision.startswith( "format_version" ): | ||
33 | monotone_revision_words = monotone_revision.split() | ||
34 | monotone_revision = monotone_revision_words[ monotone_revision_words.index( "old_revision" )+1][1:-1] | ||
35 | except IOError: | ||
36 | pass | ||
37 | return monotone_revision | ||
38 | |||
39 | def base_get_metadata_svn_revision(path, d): | 15 | def base_get_metadata_svn_revision(path, d): |
40 | # This only works with older subversion. For newer versions | 16 | # This only works with older subversion. For newer versions |
41 | # this function will need to be fixed by someone interested | 17 | # this function will need to be fixed by someone interested |