Custom repos order not being kept - it is automatically ordered alphabetically #346

Closed
opened 2024-09-28 12:55:48 +00:00 by Tio · 1 comment
Tio commented 2024-09-28 12:55:48 +00:00 (Migrated from gitlab2.manjaro.org)

According to https://wiki.manjaro.org/index.php/Build_Manjaro_ISOs_with_buildiso we can add multiple custom repos in the user-repos.conf file. But regardless of the order you add them to this file, they will be added alphabetically under pacman.conf.

This is very bad since the order is important for prioritizing one repo over the other.

Is this intentional or a bug?

Thanks!

According to https://wiki.manjaro.org/index.php/Build_Manjaro_ISOs_with_buildiso we can add multiple custom repos in the user-repos.conf file. But regardless of the order you add them to this file, they will be added alphabetically under pacman.conf. This is very bad since the order is important for prioritizing one repo over the other. Is this intentional or a bug? Thanks!
fhdk commented 2025-08-30 06:19:43 +00:00 (Migrated from gitlab2.manjaro.org)

But regardless of the order you add them to this file, they will be added alphabetically under pacman.conf.

Hmm ... never heard of this before - in fact I never heard of anyone adding more than one repo 😄

This is very bad since the order is important for prioritizing one repo over the other.

If prioritising one repo over another you can name them - just be sure the database is named the same way

[02-custom]
Server = ...

[01-custom]
Server = ...

Is this intentional or a bug?

Let's say it is intentional thus it is not going to change.

If you feel it more like a bug - I suggest please fork the project - you can use Github - then create a feature branch - refactor the code.

Then come back with a link to your feature branch - and I will look at it.

> But regardless of the order you add them to this file, they will be added alphabetically under pacman.conf. Hmm ... never heard of this before - in fact I never heard of anyone adding more than one repo :smile: > This is very bad since the order is important for prioritizing one repo over the other. If prioritising one repo over another you can name them - just be sure the database is named the same way ``` [02-custom] Server = ... [01-custom] Server = ... ``` > Is this intentional or a bug? Let's say it is intentional thus it is not going to change. If you feel it more like a bug - I suggest please fork the project - you can use Github - then create a feature branch - refactor the code. Then come back with a link to your feature branch - and I will look at it.
fhdk (Migrated from gitlab2.manjaro.org) closed this issue 2025-08-30 06:19:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#346
No description provided.