diff options
Diffstat (limited to 'meta/classes/distrodata.bbclass')
-rw-r--r-- | meta/classes/distrodata.bbclass | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass index fbb7402e0c..5b3a3e0f1c 100644 --- a/meta/classes/distrodata.bbclass +++ b/meta/classes/distrodata.bbclass | |||
@@ -25,75 +25,75 @@ addtask distrodata_np | |||
25 | do_distrodata_np[nostamp] = "1" | 25 | do_distrodata_np[nostamp] = "1" |
26 | python do_distrodata_np() { | 26 | python do_distrodata_np() { |
27 | localdata = bb.data.createCopy(d) | 27 | localdata = bb.data.createCopy(d) |
28 | pn = d.getVar("PN", True) | 28 | pn = d.getVar("PN") |
29 | bb.note("Package Name: %s" % pn) | 29 | bb.note("Package Name: %s" % pn) |
30 | 30 | ||
31 | import oe.distro_check as dist_check | 31 | import oe.distro_check as dist_check |
32 | tmpdir = d.getVar('TMPDIR', True) | 32 | tmpdir = d.getVar('TMPDIR') |
33 | distro_check_dir = os.path.join(tmpdir, "distro_check") | 33 | distro_check_dir = os.path.join(tmpdir, "distro_check") |
34 | datetime = localdata.getVar('DATETIME', True) | 34 | datetime = localdata.getVar('DATETIME') |
35 | dist_check.update_distro_data(distro_check_dir, datetime, localdata) | 35 | dist_check.update_distro_data(distro_check_dir, datetime, localdata) |
36 | 36 | ||
37 | if pn.find("-native") != -1: | 37 | if pn.find("-native") != -1: |
38 | pnstripped = pn.split("-native") | 38 | pnstripped = pn.split("-native") |
39 | bb.note("Native Split: %s" % pnstripped) | 39 | bb.note("Native Split: %s" % pnstripped) |
40 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 40 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
41 | bb.data.update_data(localdata) | 41 | bb.data.update_data(localdata) |
42 | 42 | ||
43 | if pn.find("-cross") != -1: | 43 | if pn.find("-cross") != -1: |
44 | pnstripped = pn.split("-cross") | 44 | pnstripped = pn.split("-cross") |
45 | bb.note("cross Split: %s" % pnstripped) | 45 | bb.note("cross Split: %s" % pnstripped) |
46 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 46 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
47 | bb.data.update_data(localdata) | 47 | bb.data.update_data(localdata) |
48 | 48 | ||
49 | if pn.find("-crosssdk") != -1: | 49 | if pn.find("-crosssdk") != -1: |
50 | pnstripped = pn.split("-crosssdk") | 50 | pnstripped = pn.split("-crosssdk") |
51 | bb.note("cross Split: %s" % pnstripped) | 51 | bb.note("cross Split: %s" % pnstripped) |
52 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 52 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
53 | bb.data.update_data(localdata) | 53 | bb.data.update_data(localdata) |
54 | 54 | ||
55 | if pn.startswith("nativesdk-"): | 55 | if pn.startswith("nativesdk-"): |
56 | pnstripped = pn.replace("nativesdk-", "") | 56 | pnstripped = pn.replace("nativesdk-", "") |
57 | bb.note("NativeSDK Split: %s" % pnstripped) | 57 | bb.note("NativeSDK Split: %s" % pnstripped) |
58 | localdata.setVar('OVERRIDES', "pn-" + pnstripped + ":" + d.getVar('OVERRIDES', True)) | 58 | localdata.setVar('OVERRIDES', "pn-" + pnstripped + ":" + d.getVar('OVERRIDES')) |
59 | bb.data.update_data(localdata) | 59 | bb.data.update_data(localdata) |
60 | 60 | ||
61 | 61 | ||
62 | if pn.find("-initial") != -1: | 62 | if pn.find("-initial") != -1: |
63 | pnstripped = pn.split("-initial") | 63 | pnstripped = pn.split("-initial") |
64 | bb.note("initial Split: %s" % pnstripped) | 64 | bb.note("initial Split: %s" % pnstripped) |
65 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 65 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
66 | bb.data.update_data(localdata) | 66 | bb.data.update_data(localdata) |
67 | 67 | ||
68 | """generate package information from .bb file""" | 68 | """generate package information from .bb file""" |
69 | pname = localdata.getVar('PN', True) | 69 | pname = localdata.getVar('PN') |
70 | pcurver = localdata.getVar('PV', True) | 70 | pcurver = localdata.getVar('PV') |
71 | pdesc = localdata.getVar('DESCRIPTION', True) | 71 | pdesc = localdata.getVar('DESCRIPTION') |
72 | if pdesc is not None: | 72 | if pdesc is not None: |
73 | pdesc = pdesc.replace(',','') | 73 | pdesc = pdesc.replace(',','') |
74 | pdesc = pdesc.replace('\n','') | 74 | pdesc = pdesc.replace('\n','') |
75 | 75 | ||
76 | pgrp = localdata.getVar('SECTION', True) | 76 | pgrp = localdata.getVar('SECTION') |
77 | plicense = localdata.getVar('LICENSE', True).replace(',','_') | 77 | plicense = localdata.getVar('LICENSE').replace(',','_') |
78 | 78 | ||
79 | rstatus = localdata.getVar('RECIPE_COLOR', True) | 79 | rstatus = localdata.getVar('RECIPE_COLOR') |
80 | if rstatus is not None: | 80 | if rstatus is not None: |
81 | rstatus = rstatus.replace(',','') | 81 | rstatus = rstatus.replace(',','') |
82 | 82 | ||
83 | pupver = localdata.getVar('RECIPE_UPSTREAM_VERSION', True) | 83 | pupver = localdata.getVar('RECIPE_UPSTREAM_VERSION') |
84 | if pcurver == pupver: | 84 | if pcurver == pupver: |
85 | vermatch="1" | 85 | vermatch="1" |
86 | else: | 86 | else: |
87 | vermatch="0" | 87 | vermatch="0" |
88 | noupdate_reason = localdata.getVar('RECIPE_NO_UPDATE_REASON', True) | 88 | noupdate_reason = localdata.getVar('RECIPE_NO_UPDATE_REASON') |
89 | if noupdate_reason is None: | 89 | if noupdate_reason is None: |
90 | noupdate="0" | 90 | noupdate="0" |
91 | else: | 91 | else: |
92 | noupdate="1" | 92 | noupdate="1" |
93 | noupdate_reason = noupdate_reason.replace(',','') | 93 | noupdate_reason = noupdate_reason.replace(',','') |
94 | 94 | ||
95 | maintainer = localdata.getVar('RECIPE_MAINTAINER', True) | 95 | maintainer = localdata.getVar('RECIPE_MAINTAINER') |
96 | rlrd = localdata.getVar('RECIPE_UPSTREAM_DATE', True) | 96 | rlrd = localdata.getVar('RECIPE_UPSTREAM_DATE') |
97 | result = dist_check.compare_in_distro_packages_list(distro_check_dir, localdata) | 97 | result = dist_check.compare_in_distro_packages_list(distro_check_dir, localdata) |
98 | 98 | ||
99 | bb.note("DISTRO: %s,%s,%s,%s,%s,%s,%s,%s,%s\n" % \ | 99 | bb.note("DISTRO: %s,%s,%s,%s,%s,%s,%s,%s,%s\n" % \ |
@@ -109,80 +109,80 @@ addtask distrodata | |||
109 | do_distrodata[nostamp] = "1" | 109 | do_distrodata[nostamp] = "1" |
110 | python do_distrodata() { | 110 | python do_distrodata() { |
111 | import csv | 111 | import csv |
112 | logpath = d.getVar('LOG_DIR', True) | 112 | logpath = d.getVar('LOG_DIR') |
113 | bb.utils.mkdirhier(logpath) | 113 | bb.utils.mkdirhier(logpath) |
114 | logfile = os.path.join(logpath, "distrodata.csv") | 114 | logfile = os.path.join(logpath, "distrodata.csv") |
115 | 115 | ||
116 | import oe.distro_check as dist_check | 116 | import oe.distro_check as dist_check |
117 | localdata = bb.data.createCopy(d) | 117 | localdata = bb.data.createCopy(d) |
118 | tmpdir = d.getVar('TMPDIR', True) | 118 | tmpdir = d.getVar('TMPDIR') |
119 | distro_check_dir = os.path.join(tmpdir, "distro_check") | 119 | distro_check_dir = os.path.join(tmpdir, "distro_check") |
120 | datetime = localdata.getVar('DATETIME', True) | 120 | datetime = localdata.getVar('DATETIME') |
121 | dist_check.update_distro_data(distro_check_dir, datetime, localdata) | 121 | dist_check.update_distro_data(distro_check_dir, datetime, localdata) |
122 | 122 | ||
123 | pn = d.getVar("PN", True) | 123 | pn = d.getVar("PN") |
124 | bb.note("Package Name: %s" % pn) | 124 | bb.note("Package Name: %s" % pn) |
125 | 125 | ||
126 | if pn.find("-native") != -1: | 126 | if pn.find("-native") != -1: |
127 | pnstripped = pn.split("-native") | 127 | pnstripped = pn.split("-native") |
128 | bb.note("Native Split: %s" % pnstripped) | 128 | bb.note("Native Split: %s" % pnstripped) |
129 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 129 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
130 | bb.data.update_data(localdata) | 130 | bb.data.update_data(localdata) |
131 | 131 | ||
132 | if pn.startswith("nativesdk-"): | 132 | if pn.startswith("nativesdk-"): |
133 | pnstripped = pn.replace("nativesdk-", "") | 133 | pnstripped = pn.replace("nativesdk-", "") |
134 | bb.note("NativeSDK Split: %s" % pnstripped) | 134 | bb.note("NativeSDK Split: %s" % pnstripped) |
135 | localdata.setVar('OVERRIDES', "pn-" + pnstripped + ":" + d.getVar('OVERRIDES', True)) | 135 | localdata.setVar('OVERRIDES', "pn-" + pnstripped + ":" + d.getVar('OVERRIDES')) |
136 | bb.data.update_data(localdata) | 136 | bb.data.update_data(localdata) |
137 | 137 | ||
138 | if pn.find("-cross") != -1: | 138 | if pn.find("-cross") != -1: |
139 | pnstripped = pn.split("-cross") | 139 | pnstripped = pn.split("-cross") |
140 | bb.note("cross Split: %s" % pnstripped) | 140 | bb.note("cross Split: %s" % pnstripped) |
141 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 141 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
142 | bb.data.update_data(localdata) | 142 | bb.data.update_data(localdata) |
143 | 143 | ||
144 | if pn.find("-crosssdk") != -1: | 144 | if pn.find("-crosssdk") != -1: |
145 | pnstripped = pn.split("-crosssdk") | 145 | pnstripped = pn.split("-crosssdk") |
146 | bb.note("cross Split: %s" % pnstripped) | 146 | bb.note("cross Split: %s" % pnstripped) |
147 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 147 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
148 | bb.data.update_data(localdata) | 148 | bb.data.update_data(localdata) |
149 | 149 | ||
150 | if pn.find("-initial") != -1: | 150 | if pn.find("-initial") != -1: |
151 | pnstripped = pn.split("-initial") | 151 | pnstripped = pn.split("-initial") |
152 | bb.note("initial Split: %s" % pnstripped) | 152 | bb.note("initial Split: %s" % pnstripped) |
153 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 153 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
154 | bb.data.update_data(localdata) | 154 | bb.data.update_data(localdata) |
155 | 155 | ||
156 | """generate package information from .bb file""" | 156 | """generate package information from .bb file""" |
157 | pname = localdata.getVar('PN', True) | 157 | pname = localdata.getVar('PN') |
158 | pcurver = localdata.getVar('PV', True) | 158 | pcurver = localdata.getVar('PV') |
159 | pdesc = localdata.getVar('DESCRIPTION', True) | 159 | pdesc = localdata.getVar('DESCRIPTION') |
160 | if pdesc is not None: | 160 | if pdesc is not None: |
161 | pdesc = pdesc.replace(',','') | 161 | pdesc = pdesc.replace(',','') |
162 | pdesc = pdesc.replace('\n','') | 162 | pdesc = pdesc.replace('\n','') |
163 | 163 | ||
164 | pgrp = localdata.getVar('SECTION', True) | 164 | pgrp = localdata.getVar('SECTION') |
165 | plicense = localdata.getVar('LICENSE', True).replace(',','_') | 165 | plicense = localdata.getVar('LICENSE').replace(',','_') |
166 | 166 | ||
167 | rstatus = localdata.getVar('RECIPE_COLOR', True) | 167 | rstatus = localdata.getVar('RECIPE_COLOR') |
168 | if rstatus is not None: | 168 | if rstatus is not None: |
169 | rstatus = rstatus.replace(',','') | 169 | rstatus = rstatus.replace(',','') |
170 | 170 | ||
171 | pupver = localdata.getVar('RECIPE_UPSTREAM_VERSION', True) | 171 | pupver = localdata.getVar('RECIPE_UPSTREAM_VERSION') |
172 | if pcurver == pupver: | 172 | if pcurver == pupver: |
173 | vermatch="1" | 173 | vermatch="1" |
174 | else: | 174 | else: |
175 | vermatch="0" | 175 | vermatch="0" |
176 | 176 | ||
177 | noupdate_reason = localdata.getVar('RECIPE_NO_UPDATE_REASON', True) | 177 | noupdate_reason = localdata.getVar('RECIPE_NO_UPDATE_REASON') |
178 | if noupdate_reason is None: | 178 | if noupdate_reason is None: |
179 | noupdate="0" | 179 | noupdate="0" |
180 | else: | 180 | else: |
181 | noupdate="1" | 181 | noupdate="1" |
182 | noupdate_reason = noupdate_reason.replace(',','') | 182 | noupdate_reason = noupdate_reason.replace(',','') |
183 | 183 | ||
184 | maintainer = localdata.getVar('RECIPE_MAINTAINER', True) | 184 | maintainer = localdata.getVar('RECIPE_MAINTAINER') |
185 | rlrd = localdata.getVar('RECIPE_UPSTREAM_DATE', True) | 185 | rlrd = localdata.getVar('RECIPE_UPSTREAM_DATE') |
186 | # do the comparison | 186 | # do the comparison |
187 | result = dist_check.compare_in_distro_packages_list(distro_check_dir, localdata) | 187 | result = dist_check.compare_in_distro_packages_list(distro_check_dir, localdata) |
188 | 188 | ||
@@ -272,60 +272,60 @@ python do_checkpkg() { | |||
272 | from bb.fetch2 import FetchError, NoMethodError, decodeurl | 272 | from bb.fetch2 import FetchError, NoMethodError, decodeurl |
273 | 273 | ||
274 | """first check whether a uri is provided""" | 274 | """first check whether a uri is provided""" |
275 | src_uri = (d.getVar('SRC_URI', True) or '').split() | 275 | src_uri = (d.getVar('SRC_URI') or '').split() |
276 | if src_uri: | 276 | if src_uri: |
277 | uri_type, _, _, _, _, _ = decodeurl(src_uri[0]) | 277 | uri_type, _, _, _, _, _ = decodeurl(src_uri[0]) |
278 | else: | 278 | else: |
279 | uri_type = "none" | 279 | uri_type = "none" |
280 | 280 | ||
281 | """initialize log files.""" | 281 | """initialize log files.""" |
282 | logpath = d.getVar('LOG_DIR', True) | 282 | logpath = d.getVar('LOG_DIR') |
283 | bb.utils.mkdirhier(logpath) | 283 | bb.utils.mkdirhier(logpath) |
284 | logfile = os.path.join(logpath, "checkpkg.csv") | 284 | logfile = os.path.join(logpath, "checkpkg.csv") |
285 | 285 | ||
286 | """generate package information from .bb file""" | 286 | """generate package information from .bb file""" |
287 | pname = d.getVar('PN', True) | 287 | pname = d.getVar('PN') |
288 | 288 | ||
289 | if pname.find("-native") != -1: | 289 | if pname.find("-native") != -1: |
290 | if d.getVar('BBCLASSEXTEND', True): | 290 | if d.getVar('BBCLASSEXTEND'): |
291 | return | 291 | return |
292 | pnstripped = pname.split("-native") | 292 | pnstripped = pname.split("-native") |
293 | bb.note("Native Split: %s" % pnstripped) | 293 | bb.note("Native Split: %s" % pnstripped) |
294 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 294 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
295 | bb.data.update_data(localdata) | 295 | bb.data.update_data(localdata) |
296 | 296 | ||
297 | if pname.startswith("nativesdk-"): | 297 | if pname.startswith("nativesdk-"): |
298 | if d.getVar('BBCLASSEXTEND', True): | 298 | if d.getVar('BBCLASSEXTEND'): |
299 | return | 299 | return |
300 | pnstripped = pname.replace("nativesdk-", "") | 300 | pnstripped = pname.replace("nativesdk-", "") |
301 | bb.note("NativeSDK Split: %s" % pnstripped) | 301 | bb.note("NativeSDK Split: %s" % pnstripped) |
302 | localdata.setVar('OVERRIDES', "pn-" + pnstripped + ":" + d.getVar('OVERRIDES', True)) | 302 | localdata.setVar('OVERRIDES', "pn-" + pnstripped + ":" + d.getVar('OVERRIDES')) |
303 | bb.data.update_data(localdata) | 303 | bb.data.update_data(localdata) |
304 | 304 | ||
305 | if pname.find("-cross") != -1: | 305 | if pname.find("-cross") != -1: |
306 | pnstripped = pname.split("-cross") | 306 | pnstripped = pname.split("-cross") |
307 | bb.note("cross Split: %s" % pnstripped) | 307 | bb.note("cross Split: %s" % pnstripped) |
308 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 308 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
309 | bb.data.update_data(localdata) | 309 | bb.data.update_data(localdata) |
310 | 310 | ||
311 | if pname.find("-initial") != -1: | 311 | if pname.find("-initial") != -1: |
312 | pnstripped = pname.split("-initial") | 312 | pnstripped = pname.split("-initial") |
313 | bb.note("initial Split: %s" % pnstripped) | 313 | bb.note("initial Split: %s" % pnstripped) |
314 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES', True)) | 314 | localdata.setVar('OVERRIDES', "pn-" + pnstripped[0] + ":" + d.getVar('OVERRIDES')) |
315 | bb.data.update_data(localdata) | 315 | bb.data.update_data(localdata) |
316 | 316 | ||
317 | pdesc = localdata.getVar('DESCRIPTION', True) | 317 | pdesc = localdata.getVar('DESCRIPTION') |
318 | pgrp = localdata.getVar('SECTION', True) | 318 | pgrp = localdata.getVar('SECTION') |
319 | pversion = localdata.getVar('PV', True) | 319 | pversion = localdata.getVar('PV') |
320 | plicense = localdata.getVar('LICENSE', True) | 320 | plicense = localdata.getVar('LICENSE') |
321 | psection = localdata.getVar('SECTION', True) | 321 | psection = localdata.getVar('SECTION') |
322 | phome = localdata.getVar('HOMEPAGE', True) | 322 | phome = localdata.getVar('HOMEPAGE') |
323 | prelease = localdata.getVar('PR', True) | 323 | prelease = localdata.getVar('PR') |
324 | pdepends = localdata.getVar('DEPENDS', True) | 324 | pdepends = localdata.getVar('DEPENDS') |
325 | pbugtracker = localdata.getVar('BUGTRACKER', True) | 325 | pbugtracker = localdata.getVar('BUGTRACKER') |
326 | ppe = localdata.getVar('PE', True) | 326 | ppe = localdata.getVar('PE') |
327 | psrcuri = localdata.getVar('SRC_URI', True) | 327 | psrcuri = localdata.getVar('SRC_URI') |
328 | maintainer = localdata.getVar('RECIPE_MAINTAINER', True) | 328 | maintainer = localdata.getVar('RECIPE_MAINTAINER') |
329 | 329 | ||
330 | """ Get upstream version version """ | 330 | """ Get upstream version version """ |
331 | pupver = "" | 331 | pupver = "" |
@@ -362,7 +362,7 @@ python do_checkpkg() { | |||
362 | psrcuri = "none" | 362 | psrcuri = "none" |
363 | pdepends = "".join(pdepends.split("\t")) | 363 | pdepends = "".join(pdepends.split("\t")) |
364 | pdesc = "".join(pdesc.split("\t")) | 364 | pdesc = "".join(pdesc.split("\t")) |
365 | no_upgr_reason = d.getVar('RECIPE_NO_UPDATE_REASON', True) | 365 | no_upgr_reason = d.getVar('RECIPE_NO_UPDATE_REASON') |
366 | lf = bb.utils.lockfile("%s.lock" % logfile) | 366 | lf = bb.utils.lockfile("%s.lock" % logfile) |
367 | with open(logfile, "a") as f: | 367 | with open(logfile, "a") as f: |
368 | writer = csv.writer(f, delimiter='\t') | 368 | writer = csv.writer(f, delimiter='\t') |
@@ -401,12 +401,12 @@ python do_distro_check() { | |||
401 | 401 | ||
402 | localdata = bb.data.createCopy(d) | 402 | localdata = bb.data.createCopy(d) |
403 | bb.data.update_data(localdata) | 403 | bb.data.update_data(localdata) |
404 | tmpdir = d.getVar('TMPDIR', True) | 404 | tmpdir = d.getVar('TMPDIR') |
405 | distro_check_dir = os.path.join(tmpdir, "distro_check") | 405 | distro_check_dir = os.path.join(tmpdir, "distro_check") |
406 | logpath = d.getVar('LOG_DIR', True) | 406 | logpath = d.getVar('LOG_DIR') |
407 | bb.utils.mkdirhier(logpath) | 407 | bb.utils.mkdirhier(logpath) |
408 | result_file = os.path.join(logpath, "distrocheck.csv") | 408 | result_file = os.path.join(logpath, "distrocheck.csv") |
409 | datetime = localdata.getVar('DATETIME', True) | 409 | datetime = localdata.getVar('DATETIME') |
410 | dc.update_distro_data(distro_check_dir, datetime, localdata) | 410 | dc.update_distro_data(distro_check_dir, datetime, localdata) |
411 | 411 | ||
412 | # do the comparison | 412 | # do the comparison |
@@ -449,12 +449,12 @@ do_checklicense[nostamp] = "1" | |||
449 | python do_checklicense() { | 449 | python do_checklicense() { |
450 | import csv | 450 | import csv |
451 | import shutil | 451 | import shutil |
452 | logpath = d.getVar('LOG_DIR', True) | 452 | logpath = d.getVar('LOG_DIR') |
453 | bb.utils.mkdirhier(logpath) | 453 | bb.utils.mkdirhier(logpath) |
454 | pn = d.getVar('PN', True) | 454 | pn = d.getVar('PN') |
455 | logfile = os.path.join(logpath, "missinglicense.csv") | 455 | logfile = os.path.join(logpath, "missinglicense.csv") |
456 | generic_directory = d.getVar('COMMON_LICENSE_DIR', True) | 456 | generic_directory = d.getVar('COMMON_LICENSE_DIR') |
457 | license_types = d.getVar('LICENSE', True) | 457 | license_types = d.getVar('LICENSE') |
458 | for license_type in ((license_types.replace('+', '').replace('|', '&') | 458 | for license_type in ((license_types.replace('+', '').replace('|', '&') |
459 | .replace('(', '').replace(')', '').replace(';', '') | 459 | .replace('(', '').replace(')', '').replace(';', '') |
460 | .replace(',', '').replace(" ", "").split("&"))): | 460 | .replace(',', '').replace(" ", "").split("&"))): |