summaryrefslogtreecommitdiffstats
path: root/meta/classes/distrodata.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/distrodata.bbclass')
-rw-r--r--meta/classes/distrodata.bbclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
index 4168e43849..e6eb3f32b3 100644
--- a/meta/classes/distrodata.bbclass
+++ b/meta/classes/distrodata.bbclass
@@ -272,9 +272,10 @@ python do_checkpkg() {
272 272
273 """first check whether a uri is provided""" 273 """first check whether a uri is provided"""
274 src_uri = d.getVar('SRC_URI', True) 274 src_uri = d.getVar('SRC_URI', True)
275 if not src_uri: 275 if src_uri:
276 return 276 uri_type, _, _, _, _, _ = decodeurl(src_uri)
277 uri_type, _, _, _, _, _ = decodeurl(src_uri) 277 else:
278 uri_type = "none"
278 279
279 """initialize log files.""" 280 """initialize log files."""
280 logpath = d.getVar('LOG_DIR', True) 281 logpath = d.getVar('LOG_DIR', True)
@@ -354,7 +355,10 @@ python do_checkpkg() {
354 elif cmp == 0: 355 elif cmp == 0:
355 pstatus = "MATCH" 356 pstatus = "MATCH"
356 357
357 psrcuri = psrcuri.split()[0] 358 if psrcuri:
359 psrcuri = psrcuri.split()[0]
360 else:
361 psrcuri = "none"
358 pdepends = "".join(pdepends.split("\t")) 362 pdepends = "".join(pdepends.split("\t"))
359 pdesc = "".join(pdesc.split("\t")) 363 pdesc = "".join(pdesc.split("\t"))
360 no_upgr_reason = d.getVar('RECIPE_NO_UPDATE_REASON', True) 364 no_upgr_reason = d.getVar('RECIPE_NO_UPDATE_REASON', True)