Skip to content

Commit

Permalink
Fix gpg_check positional arg
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Apr 1, 2024
1 parent b77ccbc commit 9ace0af
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions plugins/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,23 +232,31 @@ def validate_input(args):
error('Unknown action: ' + args.action)


def process_project_install(project, config, linux_distro, dry_run=False):
def process_project_install(project, config, linux_distro, gpg_check,
dry_run=False):
project_config = get_first_valid_project_config(project, config, linux_distro)
if not project_config:
error('Unknown project: ' + project)

if not dry_run: # useful for tests
install_repos(get_repositories_config(project_config),
config,
linux_distro)
linux_distro,
gpg_check)


def process_input(args, config):
action, repo_name, repo_type, project, linux_distro, gpg_check = args

if (action == 'enable'):
process_project_install(project, config, linux_distro) \
if project else \
if project:
# project dependant installation
process_project_install(project,
config,
linux_distro,
gpg_check)
else:
# generic repository installation
install_repo(repo_name,
repo_type,
config,
Expand Down

0 comments on commit 9ace0af

Please sign in to comment.