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

_emerge: use binpkg coloring for pkg_pretend #1093

Closed
wants to merge 3 commits into from

Conversation

thesamesam
Copy link
Member

For the 'Running pre-merge checks' message, we write:

>>> Running pre-merge checks for X

X is currently always in green, while the emerge list above might have the atom X listed in purple if it's a binpkg.

Change X to be colored based on if it's a binpkg or not.

Bug: https://bugs.gentoo.org/914159

lib/_emerge/Scheduler.py Outdated Show resolved Hide resolved
lib/_emerge/Scheduler.py Outdated Show resolved Hide resolved
For the 'Running pre-merge checks' message, we write:
```
>>> Running pre-merge checks for X
```

X is currently always in green, while the emerge list above might have the atom
X listed in purple if it's a binpkg.

Change X to be colored based on if it's a binpkg or not.

Bug: https://bugs.gentoo.org/914159
Signed-off-by: Sam James <sam@gentoo.org>
With the 'echo' elog module, we get messages like:
```
 * Messages for package X
 * Log file: /var/log/portage/build/[...]
```

Colorize 'X' based on whether it's a binpkg or not, rather than always using
green as if it was built from source.

Bug: https://bugs.gentoo.org/914159
Signed-off-by: Sam James <sam@gentoo.org>
Copy link
Member

@mgorny mgorny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. You may consider adding a colorize_pkg(x) helper that would print x.cpv with color based on x.built.

@thesamesam
Copy link
Member Author

Yeah, I was wondering the same. I'll leave it for now though.

Thanks!

@thesamesam
Copy link
Member Author

Merged.

@thesamesam thesamesam closed this Sep 15, 2023
@thesamesam thesamesam deleted the color branch September 15, 2023 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants