Skip to content
Snippets Groups Projects
Commit c16eacc4 authored by Alessandro Di Federico's avatar Alessandro Di Federico
Browse files

Introduce `orc fix-binary-archives-symlinks`

parent e892bba4
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ from . import shell
from . import uninstall
from . import update
from . import ls
from . import fix_binary_archives_symlinks
class CustomArgumentParser(argparse.ArgumentParser):
......@@ -39,4 +40,5 @@ def install_subcommands(argparser):
graph.install_subcommand(subparsers)
shell.install_subcommand(subparsers)
ls.install_subcommand(subparsers)
fix_binary_archives_symlinks.install_subcommand(subparsers)
return subparsers
import os
from loguru import logger
from ..model.configuration import Configuration
def install_subcommand(sub_argparser):
cmd_parser = sub_argparser.add_parser("fix-binary-archives-symlinks",
handler=handle_fix_binary_archives_symlinks,
help="Fix symlinks in binary archives")
def handle_fix_binary_archives_symlinks(args):
config = Configuration(args)
for _, component in config.components.items():
for _, build in component.builds.items():
build.install.update_binary_archive_symlink()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment