Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support repository-specific wildcards #46

Open
Kangie opened this issue Oct 15, 2023 · 0 comments
Open

[Feature Request] Support repository-specific wildcards #46

Kangie opened this issue Oct 15, 2023 · 0 comments

Comments

@Kangie
Copy link

Kangie commented Oct 15, 2023

kangie@monolith ~ $ flaggie --version
flaggie 0.99.8

What I did

kangie@monolith ~ $ flaggie '*/*::haskell' '+kw::~amd64'

What I got

Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/flaggie", line 8, in <module>
    sys.exit(entry_point())
             ^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flaggie/__main__.py", line 367, in entry_point
    sys.exit(main(*sys.argv))
             ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flaggie/__main__.py", line 337, in main
    operation.function(config_file, package, group, flag)
  File "/usr/lib/python3.11/site-packages/flaggie/mangle.py", line 281, in mangle_flag
    try_new_entry_after(new_line) or try_new_entry(new_line)
                                     ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/flaggie/mangle.py", line 263, in try_new_entry
    raise WildcardEntryError()
flaggie.mangle.WildcardEntryError: Adding wildcard entries other than */* is not supported

What I expected

diff --git a/etc/portage/package.accept_keywords/99local b/etc/portage/package.accept_keywordstmpaijlpnc2
index c603ae2..6a2dfb5 100644
--- a/etc/portage/package.accept_keywords/99local
+++ b/etc/portage/package.accept_keywordstmpaijlpnc2
@@ -1,2 +1,2 @@
{+*/*::haskell ~amd64+} 

It would be nice to be able to set keywords for a repository added through automation in a consistent manner!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant