for element in license_struct[1:]:
if isinstance(element, list):
if element:
- ret.append(self._getMissingLicenses(element))
+ ret.append(self._getMissingLicenses(
+ element, acceptable_licenses))
if not ret[-1]:
return []
else:
for element in license_struct:
if isinstance(element, list):
if element:
- ret.extend(self._getMissingLicenses(element))
+ ret.extend(self._getMissingLicenses(element,
+ acceptable_licenses))
else:
if element not in acceptable_licenses:
ret.append(element)