Skip to content

Commit

Permalink
one more try
Browse files Browse the repository at this point in the history
  • Loading branch information
msdobrescu committed Jan 16, 2025
1 parent 69edade commit fe64c74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/templates/functions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@
{{- if $value }}
cat /etc/portage/make.conf || true; \
grep -qx '^EMERGE_DEFAULT_OPTS=.*' /etc/portage/make.conf || echo 'EMERGE_DEFAULT_OPTS=' >> /etc/portage/make.conf; \
sed -i -e "/^EMERGE_DEFAULT_OPTS=.*--usepkg-exclude/! s/^\(EMERGE_DEFAULT_OPTS=.*\)/\1 --usepkg-exclude/" /etc/portage/make.conf; \
sed -i -e "/^EMERGE_DEFAULT_OPTS=.*--usepkg-exclude[ ]*'/! s/^\(EMERGE_DEFAULT_OPTS=.*--usepkg-exclude\)[ ]*/\1 ''/" /etc/portage/make.conf; \
sed -i -e "/--usepkg-exclude[ ]*'.*{{ $atom.atom | replace "/" "\\/" }}.*'/! s/--usepkg-exclude\([ ]*\)'\(.*\)'/--usepkg-exclude '{{ $atom.atom | replace "/" "\\/" }} \2'/" /etc/portage/make.conf; \
sed -i -E "s/--usepkg-exclude ' *([^ ']*([^']*[^ ])) *'/--my-option '\1'/g" /etc/portage/make.conf; \
sed -i -e '/^EMERGE_DEFAULT_OPTS=.*--usepkg-exclude/! s/^\(EMERGE_DEFAULT_OPTS=.*\)/\1 --usepkg-exclude/' /etc/portage/make.conf; \
sed -i -e '/^EMERGE_DEFAULT_OPTS=.*--usepkg-exclude[ ]*"/! s/^\(EMERGE_DEFAULT_OPTS=.*--usepkg-exclude\)[ ]*/\1 ""/' /etc/portage/make.conf; \
sed -i -e '/--usepkg-exclude[ ]*".*{{ $atom.atom | replace '/' '\\/' }}.*"/! s/--usepkg-exclude\([ ]*\)"\(.*\)"/--usepkg-exclude "{{ $atom.atom | replace '/' '\\/' }} \2"/' /etc/portage/make.conf; \
sed -i -E 's/--usepkg-exclude " *([^ "]*([^"]*[^ ])) *"/--my-option "\1"/g' /etc/portage/make.conf; \
cat /etc/portage/make.conf; \
{{- end }}

Expand Down

0 comments on commit fe64c74

Please sign in to comment.