Skip to content

Add Pacman settings submenu with Color and ParallelDownloads#4404

Open
Softer wants to merge 4 commits intoarchlinux:masterfrom
Softer:pacman-config-menu
Open

Add Pacman settings submenu with Color and ParallelDownloads#4404
Softer wants to merge 4 commits intoarchlinux:masterfrom
Softer:pacman-config-menu

Conversation

@Softer
Copy link
Copy Markdown
Contributor

@Softer Softer commented Apr 10, 2026

PR Description:

Replace the standalone "Parallel Downloads" menu item with a "Pacman" submenu (hidden behind the --advanced flag, same as before) containing two options:

  • ParallelDownloads (default 5)
  • Color (default on).

ParallelDownloads is applied to the live system immediately for faster package installation. Both settings are written to the target system's /etc/pacman.conf by uncommenting and setting the corresponding lines.

Old config files using "parallel_downloads": N are still parsed correctly via a fallback in from_config().

Tests and Checks

  • Run with --advanced, open Pacman submenu, change both values
  • Verify target /etc/pacman.conf has correct ParallelDownloads and Color after install
  • Run without --advanced — Pacman menu hidden, defaults (5, Color on) applied
  • Load old config with --config containing "parallel_downloads": 3 — parsed correctly

Softer added 2 commits April 11, 2026 02:12
Replace the standalone Parallel Downloads menu item with a Pacman
submenu containing ParallelDownloads (default 5) and Color (default on).
Settings are applied to both live and target system pacman.conf.
Hidden behind --advanced flag.

Backward compatible with old configs using "parallel_downloads" key.
@Softer Softer requested a review from Torxed as a code owner April 10, 2026 23:40
@svartkanin
Copy link
Copy Markdown
Collaborator

I like the change but I still need to test and review it properly.
One thing though, lets not put the entire pacman config menu entry behind the --advanced but only the parallel downloads as we may want to have actual future settings in that sub-menu that are fine without advanced.

@Softer
Copy link
Copy Markdown
Contributor Author

Softer commented Apr 11, 2026

One thing though, lets not put the entire pacman config menu entry behind the --advanced but only the parallel downloads as we may want to have actual future settings in that sub-menu that are fine without advanced.

I agree, but right now we have only two options in this menu, and both of them are advanced in my opinion. :)

def default(cls) -> Self:
return cls()

def json(self) -> dict[str, Any]:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@svartkanin
Copy link
Copy Markdown
Collaborator

Yes I saw that, my question then is why is the color selection behind the advanced flag?
The reason the parallele downloads is is because if it's visible by default a lot of users may increase that value and hit the Arch server too hard.

@Softer
Copy link
Copy Markdown
Contributor Author

Softer commented Apr 12, 2026

Yes I saw that, my question then is why is the color selection behind the advanced flag? The reason the parallele downloads is is because if it's visible by default a lot of users may increase that value and hit the Arch server too hard.

I thought about this but wasn't sure what's better - I followed the same approach as the existing ParallelDownloads. What do you think?

@svartkanin
Copy link
Copy Markdown
Collaborator

Keeping the parallel downloads behind the advanced is fine but i think the color can be enabled by default, therefore I'd suggest to make the pacman config menu entry enabled by default, show the color option and put the parallel downloads behind the advanced\

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