summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-22 15:21:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-23 10:53:15 +0000
commit481944090479c467abf82625d24b95c1ed5cc643 (patch)
tree092efff3cc88cda80ed2ce0f75da4402a79f79d1 /meta/classes
parent7574868367ded0e4e1d11241e7ce6d04afd91dbe (diff)
downloadpoky-481944090479c467abf82625d24b95c1ed5cc643.tar.gz
buildhistory: Drop support for older bitbakes
We've bumped the minimum bitbake version past the point this fallback code was needed, drop it. (From OE-Core rev: c45ad27f3c43c9bbde5c4d19237411fdbc66920e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/buildhistory.bbclass12
1 files changed, 1 insertions, 11 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 62d0d781a1..e43e71f90f 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -934,22 +934,12 @@ def _get_srcrev_values(d):
934 if urldata[u].method.supports_srcrev(): 934 if urldata[u].method.supports_srcrev():
935 scms.append(u) 935 scms.append(u)
936 936
937 autoinc_templ = 'AUTOINC+'
938 dict_srcrevs = {} 937 dict_srcrevs = {}
939 dict_tag_srcrevs = {} 938 dict_tag_srcrevs = {}
940 for scm in scms: 939 for scm in scms:
941 ud = urldata[scm] 940 ud = urldata[scm]
942 for name in ud.names: 941 for name in ud.names:
943 try: 942 autoinc, rev = ud.method.sortable_revision(ud, d, name)
944 rev = ud.method.sortable_revision(ud, d, name)
945 except TypeError:
946 # support old bitbake versions
947 rev = ud.method.sortable_revision(scm, ud, d, name)
948 # Clean this up when we next bump bitbake version
949 if type(rev) != str:
950 autoinc, rev = rev
951 elif rev.startswith(autoinc_templ):
952 rev = rev[len(autoinc_templ):]
953 dict_srcrevs[name] = rev 943 dict_srcrevs[name] = rev
954 if 'tag' in ud.parm: 944 if 'tag' in ud.parm:
955 tag = ud.parm['tag']; 945 tag = ud.parm['tag'];