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

parsing the 'exclude' option has unexpected effects #23

Open
Chiitoo opened this issue Jul 21, 2023 · 2 comments
Open

parsing the 'exclude' option has unexpected effects #23

Chiitoo opened this issue Jul 21, 2023 · 2 comments

Comments

@Chiitoo
Copy link

Chiitoo commented Jul 21, 2023

Perhaps other options will do this as well, but for example:

smart-live-rebuild -- --ask --keep-going --exclude falkon

Reults in:

*** Forking to drop superuser privileges ...
*** Updating the repositories using 6 parallel jobs...
->  https://invent.kde.org/network/falkon.git [HEAD]
--> git ls-remote https://invent.kde.org/network/falkon.git HEAD
->  [www-client/falkon:0] https://invent.kde.org/network/falkon.git [HEAD]
--> update from fa41b5ce193992c23a2e6907d5c17e9e0208174c to 16b088bccfa7cfc139225d8f35003e5ba3cf6533
*** Found 1 packages to rebuild (out of 1 live packages).
->  emerge --oneshot --getbinpkg=n --usepkg-exclude www-client/falkon:0 --ask --keep-going --exclude falkon www-client/falkon:0

The same will happen with:

smart-live-rebuild -- --ask --keep-going --exclude "falkon"

However, if a whitespace is added:

smart-live-rebuild -- --ask --keep-going --exclude "falkon "

it will take us to:

[...]
*** Found 1 packages to rebuild (out of 35 live packages).
->  emerge --oneshot --getbinpkg=n --usepkg-exclude www-client/falkon:0 --ask --keep-going --exclude 'falkon ' www-client/falkon:0

These are the packages that would be merged:

Calculating dependencies               ... done!
Dependency resolution took 0.85 s.


Total: 0 packages, Size of downloads: 0 KiB

Nothing to merge; quitting.
@mgorny
Copy link
Member

mgorny commented Jul 21, 2023

Err but it doesn't really parse these options, so you're looking at Portage behavior?

@Chiitoo
Copy link
Author

Chiitoo commented Jul 22, 2023

D'oh, right, though isn't the list of packages built before it gets to 'emerge'?

Whenever I exclude only one package (without a white space), only one package is found instead of 35.

Thanks!

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

2 participants