distrodata: handle recipes with empty or absent SRC_URI in checkpkg()

(From OE-Core rev: ea7cd81d6d1d4d00553cd475623af0d24f5ea84f)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin 2015-09-25 14:41:36 +03:00 committed by Richard Purdie
parent 5cc44fe4fd
commit ea031f05a5
1 changed files with 8 additions and 4 deletions

View File

@ -272,9 +272,10 @@ python do_checkpkg() {
"""first check whether a uri is provided"""
src_uri = d.getVar('SRC_URI', True)
if not src_uri:
return
uri_type, _, _, _, _, _ = decodeurl(src_uri)
if src_uri:
uri_type, _, _, _, _, _ = decodeurl(src_uri)
else:
uri_type = "none"
"""initialize log files."""
logpath = d.getVar('LOG_DIR', True)
@ -354,7 +355,10 @@ python do_checkpkg() {
elif cmp == 0:
pstatus = "MATCH"
psrcuri = psrcuri.split()[0]
if psrcuri:
psrcuri = psrcuri.split()[0]
else:
psrcuri = "none"
pdepends = "".join(pdepends.split("\t"))
pdesc = "".join(pdesc.split("\t"))
no_upgr_reason = d.getVar('RECIPE_NO_UPDATE_REASON', True)