Skip to content

aurora-sep: don't count Omarchy ARM's own-repository packages as pending - #86

Closed
n0mahd wants to merge 1 commit into
omacom:integration/aurorafrom
n0mahd:aurora-omarchy-arm-pins
Closed

n0mahd wants to merge 1 commit into
omacom:integration/aurorafrom
n0mahd:aurora-omarchy-arm-pins

Conversation

@n0mahd

@n0mahd n0mahd commented Oct 12, 2026

Copy link
Copy Markdown

Fixes #81.

Problem

On Omarchy Mac, the installer's pending-upgrade check never passes. Omarchy installs hyprland, hyprtoolkit and hyprland-guiutils from its own [omarchy] repository on purpose: omarchy update passes them as omarchy/<name> targets (omarchy_arm_package_targets in /usr/share/omarchy/install/helpers/arm-package-sources.sh). Current omarchy-mac also passes them as --ignore. When [extra] has a newer build, pacman -Qu keeps listing it, without [ignored]:

hyprland-guiutils 0.2.2-3 -> 0.2.2-4
hyprtoolkit 0.5.4-5.1 -> 0.6.0-1

No update clears these, so install and --uninstall both stop with "Run 'omarchy update', reboot, then retry". I hit this on a J313 (MacBook Air M1) installing aurora-2026.10.10.12.

Change

omarchy_arm_repo_pins gets the list from Omarchy's own helper rather than hardcoding it, so the list stays right when Omarchy changes it. The check then skips a row without [ignored] only while the installed build is that repository's current one (pacman -Sl <repo> shows it as [installed]). The check still refuses in every other case:

  • Omarchy's repository has a newer build, which omarchy update would install.
  • Any other package has a pending upgrade.
  • There is no Omarchy helper (non-Omarchy systems), or it fails.
  • A target names a repository that isn't configured. pacman -Sl fails there, and the guard keeps that failure from ending the installer under set -euo pipefail.

The [ignored] handling is unchanged, so IgnorePkg holds still require an update, as test_ignored_non_candidate_upgrade_still_requires_full_update expects. This PR leaves out the second case in #81: a package marked [ignored] without being in IgnorePkg (claude-desktop there, brave-bin here). Both come only from [omarchy], which Omarchy adds with Usage = Sync, so that is probably the cause. It deserves its own decision.

Tests

  • I added a fake pacman -Sl (it fails for an unconfigured repository, as pacman does) and four tests to test_m3_flow.py:
    • pins don't block an install;
    • a newer build in Omarchy's repository, and other upgrades, still block;
    • with no helper, or a failing one, the check refuses as before;
    • a target in an unconfigured repository is skipped without ending the install.
  • Without the installer change, the three tests that exercise the pins fail. The unknown-repository test also fails against a version without the || true guard.
  • python3 -m unittest test_m3_flow test_m3_air on this branch: 119 tests, 1 skipped, 1 failure. The failure, test_limine_uninstall_removes_the_retained_gpu_off_entry, also happens without this change on this Mac. It isn't caused by this PR: with Aurora installed, that test reaches the real /etc/systemd/system/aurora-sep-fallback-modules.service and stops at sudo. Running the suite as root on an installed Mac would remove that unit.
  • On the J313 (Omarchy 4.0.2), omarchy_arm_repo_pins returns hyprland hyprtoolkit hyprland-guiutils. The current omarchy-mac helper defines only functions and still has omarchy_arm_package_targets.

🤖 Generated with Claude Code

Omarchy on ARM installs hyprland, hyprtoolkit and hyprland-guiutils from its
[omarchy] repository on purpose: 'omarchy update' passes them to pacman as
omarchy/<name> targets (omarchy_arm_package_targets in
/usr/share/omarchy/install/helpers/arm-package-sources.sh). When [extra] has a
newer build, pacman -Qu keeps listing it, no update clears it, and the
pending-upgrade check refuses every install and uninstall with "Run 'omarchy
update'".

Read the targets from Omarchy's own helper and skip a pending row only while
the installed build is that repository's current one (pacman -Sl shows it as
[installed]). A newer build in Omarchy's repository, any other package, a
missing helper, a failing helper and an unconfigured repository all keep the
current refusal.

Fixes chriskearney#81.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chriskearney

Copy link
Copy Markdown

Thanks @n0mahd, this is a good fix. I've carried it onto the current integration/aurora in #110, with your commit unchanged plus one follow-up: a failing Omarchy helper now skips nothing, and the installer names the packages it skips.

Your commit has no Signed-off-by, and every commit in this tree carries one. Could you reply here with your sign-off line?

Signed-off-by: N0mad <[email protected]>

If you'd rather use a different name or email, use that one. I'll add it to the carried commit and merge #110.

@maralcbr

Copy link
Copy Markdown
Member

This PR is already superseeded.

Thanks a lot for your contribution! 🤘

@maralcbr maralcbr closed this Oct 25, 2026
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.

Installer refuses on omarchy-mac: packages held with pacman --ignore count as pending upgrades

3 participants