Skip to content

Respect Portage verbosity#51

Merged
hartwork merged 1 commit intohartwork:masterfrom
callmetango:feature/reduce-verbosity
Jun 17, 2025
Merged

Respect Portage verbosity#51
hartwork merged 1 commit intohartwork:masterfrom
callmetango:feature/reduce-verbosity

Conversation

@callmetango
Copy link
Contributor

@callmetango callmetango commented Jun 12, 2025

  • respect Portage verbosity setting
  • reduce standard verbosity
  • respect NO_COLOR env variable

Copy link
Owner

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

Hello @callmetango, here is what I found during review:

Comment on lines +181 to +182
if os.getenv("NO_COLOR"):
args.append("--enable-color=false")
Copy link
Owner

Choose a reason for hiding this comment

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

Move this into a separate commit please, it does not seem to have anything to do with portage verbosity.


MAX_STREAMS = 5
ARIA2_COMMAND = "/usr/bin/aria2c"
VERBOSE = os.getenv("PORTAGE_VERBOSE", "0") == "1"
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
VERBOSE = os.getenv("PORTAGE_VERBOSE", "0") == "1"
VERBOSE = os.getenv("PORTAGE_VERBOSE") == "1"

Simpler and works the same.

* respect Portage verbosity setting
* reduce standard verbosity
@callmetango callmetango force-pushed the feature/reduce-verbosity branch from c38e9e3 to d8e28fb Compare June 17, 2025 19:25
Copy link
Owner

@hartwork hartwork left a comment

Choose a reason for hiding this comment

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

@callmetango thanks! 👍

@hartwork hartwork merged commit f5e8274 into hartwork:master Jun 17, 2025
4 checks passed
@hartwork hartwork changed the title Respect Portage verbosity and NO_COLOR Respect Portage verbosity Jun 17, 2025
@hartwork
Copy link
Owner

@callmetango PS: Should I go forward make a release or would you rather add NO_COLOR via a dedicated pull request first?

@callmetango
Copy link
Contributor Author

Thank you for merging! I'd like to open another pull request regarding the NO_COLOR handling. After that is was nice to have a release.

@hartwork
Copy link
Owner

@callmetango cool, deal 🍻

@callmetango callmetango deleted the feature/reduce-verbosity branch June 17, 2025 21:22
@hartwork
Copy link
Owner

@callmetango side note: I will bump the version to 1.0.0 because of the change in verbosity (a la semver).

@hartwork
Copy link
Owner

@callmetango done:

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

Successfully merging this pull request may close these issues.

2 participants