Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
orchestra-v3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alessandro Di Federico
orchestra-v3
Commits
c16eacc4
Commit
c16eacc4
authored
4 years ago
by
Alessandro Di Federico
Browse files
Options
Downloads
Patches
Plain Diff
Introduce `orc fix-binary-archives-symlinks`
parent
e892bba4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
orchestra/cmds/__init__.py
+2
-0
2 additions, 0 deletions
orchestra/cmds/__init__.py
orchestra/cmds/fix_binary_archives_symlinks.py
+18
-0
18 additions, 0 deletions
orchestra/cmds/fix_binary_archives_symlinks.py
with
20 additions
and
0 deletions
orchestra/cmds/__init__.py
+
2
−
0
View file @
c16eacc4
...
...
@@ -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
This diff is collapsed.
Click to expand it.
orchestra/cmds/fix_binary_archives_symlinks.py
0 → 100644
+
18
−
0
View file @
c16eacc4
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
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment