

def execute(self, ns, package_array):
    identity_checks = []

    def _verify_identity(identity):
        failed_checks = list(software.verify_package(ns, identity))
        identity_checks.append((identity, failed_checks))
    for_each_package_specs(ns, package_array, 'verify', _verify_identity)
    for (identity, failed_checks) in identity_checks:
        if len(failed_checks):
            (yield fcmd.NewTableCommand(title=identity.ElementName))
            for file_check in failed_checks:
                (yield (software.render_failed_flags(file_check.FailedFlags), file_check.Name))
        elif failed_checks.app.config.verbose:
            (yield fcmd.NewTableCommand(title=identity.ElementName))
            (yield ('', 'passed'))
        else:
            LOG().debug('Package "%s" passed.', identity.ElementName)

dataset/ETHPy150Open openlmi/openlmi-scripts/commands/software/lmi/scripts/software/cmd.py Verify.execute/VarMisuse@126/186 `self`->`failed_checks`