Skip to content

Prioritize OPR and migrate existing repository ordering - #14551

Merged
ryanrhughes merged 3 commits into
quattrofrom
fix/opr-repository-priority
Oct 8, 2026
Merged

ryanrhughes merged 3 commits into
quattrofrom
fix/opr-repository-priority

Conversation

@dhh

@dhh dhh commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Omarchy currently lists Arch before OPR, so packages with the same name resolve to Arch first. Put OPR first in the stable, RC, and edge defaults so Omarchy can supply overrides, including the forthcoming Quickshell build.

Add an idempotent migration that moves the existing [omarchy] section without replacing administrator options, custom repositories, or channel URLs. Back up the existing configuration before changing it. Update the custom-repository hook sample to insert before the new first repository. After ordering the repositories, run omarchy-update-system-pkgs to refresh package databases and upgrade installed system packages immediately. The package update also runs when the configuration is already ordered, so a failed update remains pending and can be retried.

Validation: migration fixtures for all three channels preserve section contents and custom settings, repeated runs are no-ops, and missing/already-prioritized sections remain unchanged. Focused regression tests verify that stable, RC, and edge update packages after the new order is written, preserve the original backup on repeat, retry failed updates, and stop before updating if the configuration write fails. Bash syntax and diff checks pass. Earlier synthetic pacman database checks confirmed OPR priority even with a higher-version Arch package.

Complete published edge override cleanup before enabling priority there. RC/stable cleanup follows their snapshot advances at release time; preserve the old Cirrus shim until the destination has its complete official replacement. Recipe retirement was merged in omacom/omarchy-pkgs#853; published repository cleanup is separate.

Companion installer change: omacom/omarchy-iso#240

@greptile-apps

greptile-apps Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[High risk] Reorders package repositories and runs system upgrade migration.

The PR appears safe to merge; no new actionable issue remains.

What we checked:

  • Failed updates remain retryable: The migration runner stops when the update fails. It writes the completion marker only after the migration succeeds.

Summary

Puts OPR before Arch in all three default configurations and adds a migration that moves the existing section while keeping its settings. The hook sample now inserts custom repositories before OPR.

  • The migration backs up changed configurations and updates packages after reordering.
  • Added fixtures cover channel URLs, custom settings, backups, repeated runs, and failure retries.
  • All five fixture checks passed.

Reviews (3) · Last reviewed commit: "Update packages after prioritizing OPR" · Reviewed by Greptile

Comment thread migrations/1791403252.sh Resolved
@dhh dhh changed the title Prioritize OPR and migrate existing installs to its Quickshell build Prioritize OPR and migrate existing repository ordering Oct 8, 2026
@dhh dhh reopened this Oct 8, 2026
@jandrusk

jandrusk commented Oct 8, 2026

Copy link
Copy Markdown

Blocking: migration filename collision. migrations/1791403252.sh is also added by #14552 (dictation) and #14541 (Surface MODULES). Whichever merges second will clobber the other, so this one (or the others) needs a fresh timestamp.

Two smaller things in the migration:

  • Custom repos get demoted. The awk puts [omarchy] ahead of every repository, including a custom repo the user had placed above [core] (your test fixture has [custom] before [core] and expects [omarchy] to end up first). The updated add-custom-repo.sample now inserts custom repos above [omarchy], so new setups get "custom first" while migrated ones get "OPR first". If custom-first is the intent, inserting [omarchy] just before the first of core/extra/multilib would keep both paths consistent. If OPR should outrank custom repos too, the sample comment could say so.
  • Edge comment block moves with it (cosmetic). On edge, the "Repositories for debug symbol packages" comment block (and any commented [core-debug] stanzas) sits after Server = in the [omarchy] section, so the awk moves it to the top, above [core]. The new pacman-edge.conf keeps it at the bottom, so migrated and fresh configs diverge until the next omarchy-refresh-pacman.

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.

4 participants