Merge "tools: pack: Added Filename null check during memory specific image"

This commit is contained in:
Linux Build Service Account 2020-08-19 22:36:41 -07:00 committed by Gerrit - the friendly Code Review server
commit 53e132419a

View file

@ -1208,7 +1208,7 @@ class Pack(object):
print "Skipping partition '%s'" % section.attrib['label']
pass
if section != None and section.get('filename_mem' + memory_size) != None:
if section != None and filename != "" and section.get('filename_mem' + memory_size) != None:
filename = section.get('filename_mem' + memory_size)
if section != None and atf == "true" and section.get('filename_atf') != None:
@ -1613,7 +1613,7 @@ class Pack(object):
print "Skipping partition '%s'" % section.attrib['label']
pass
if section != None and section.get('filename_mem' + memory_size) != None:
if section != None and filename != "" and section.get('filename_mem' + memory_size) != None:
filename = section.get('filename_mem' + memory_size)
if section != None and atf == "true" and section.get('filename_atf') != None: