def METHOD_NAME(self):
    """Verify that conditions are met so that this command can run.
    That there are enabled repositories with gpg keys, and that
    this command is called with appropriate arguments.
    """
    demands = self.cli.demands
    demands.sack_activation = True
    demands.available_repos = True
    demands.resolving = True
    demands.root_user = True
    commands._checkGPGKey(self.base, self.cli)
    if not self.opts.filenames:
        commands._checkEnabledRepo(self.base)