Skip to content

Commit

Permalink
dev-lang-stable/rust-bin: Add finalize
Browse files Browse the repository at this point in the history
Add uninstall section on finalize to cleanup environment
file under /etc/env.d directory and executing `macaronictl env-update`.

Closes: #4
  • Loading branch information
geaaru committed Nov 26, 2023
1 parent 9dc84c4 commit c809703
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
shell:
- /bin/bash
- -c
uninstall:
- eval 'rm -vf /etc/env.d/50rust-bin-{{ ( index .Values.labels "original.package.version"
) }} || true' && eval 'macaronictl env-update || true'
8 changes: 8 additions & 0 deletions portage-converter/base-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,14 @@ artefacts:
- cpu_flags_x86_sse2
packages:
- dev-lang/rust-bin:stable
finalizer:
shell:
- "/bin/bash"
- "-c"
uninstall:
- >-
eval 'rm -vf /etc/env.d/50rust-bin-{{ ( index .Values.labels "original.package.version" ) }} || true' &&
eval 'macaronictl env-update || true'
- tree: packages/atoms/base-python
mutations:
Expand Down

0 comments on commit c809703

Please sign in to comment.