summaryrefslogtreecommitdiffstats
path: root/meta/classes/utility-tasks.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/utility-tasks.bbclass')
-rw-r--r--meta/classes/utility-tasks.bbclass22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index 8bec8d463a..64d65c8aed 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -95,3 +95,25 @@ do_buildall() {
95 : 95 :
96} 96}
97 97
98addtask distro_check after do_distro_check
99do_distro_check[nostamp] = "1"
100python do_distro_check() {
101 """checks if the package is present in other public Linux distros"""
102 import oe.distro_check as dc
103 localdata = bb.data.createCopy(d)
104 bb.data.update_data(localdata)
105
106 tmpdir = bb.data.getVar('TMPDIR', localdata, 1)
107 distro_check_dir = os.path.join(tmpdir, "distro_check")
108 datetime = bb.data.getVar('DATETIME', localdata, 1)
109
110 # if distro packages list data is old then rebuild it
111 dc.update_distro_data(distro_check_dir, datetime)
112
113 # do the comparison
114 result = dc.compare_in_distro_packages_list(distro_check_dir, d)
115
116 # save the results
117 dc.save_distro_check_result(result, datetime, d)
118}
119