Skip to content

fix: check all foreign packages for updates when local repos configured - #25

Closed
pfeifferj wants to merge 1 commit into
Morganamilo:masterfrom
pfeifferj:fix/localdb
Closed

fix: check all foreign packages for updates when local repos configured#25
pfeifferj wants to merge 1 commit into
Morganamilo:masterfrom
pfeifferj:fix/localdb

Conversation

@pfeifferj

Copy link
Copy Markdown
Contributor

When local repos are configured, update_targs() was only returning packages that exist in the local repo databases. Packages installed before local repos were set up, or installed manually, were silently skipped during update checks.

Now iterates localdb and includes packages that are either in the specified local repos or are foreign (not in any syncdb).

Related: Morganamilo/paru#1503 (comment)

When local repos are configured, update_targs() was only returning
packages that exist in the local repo databases. Packages installed
before local repos were set up, or installed manually, were silently
skipped during update checks.

Now iterates localdb and includes packages that are either in the
specified local repos OR are foreign (not in any syncdb).

Signed-off-by: Josephine Pfeiffer <hi@josie.lol>
@popzxc

popzxc commented Apr 9, 2026

Copy link
Copy Markdown

Hey! Thanks for this fix, I'm waiting for it (or rather, fix for Morganamilo/paru#1503), is it going to be merged anytime soon?

@pfeifferj

Copy link
Copy Markdown
Contributor Author

I talked to lu about this a little while ago and iirc the bottom line was that I had the design model wrong with this fix since under LocalRepo, tracked AUR pkgs are pacman's job (they're in a syncdb, pacman -Syu handles installed-vs-syncdb), and paru -Syu's AUR path only needs to check whether the local repo needs rebuilds from AUR.

foreign AUR pkgs installed outside any configured local repo are out of scope by design; recovery is paru -Syu --nolocalrepo or pacman -Qmq | paru -Ta - | paru -Sa -.

the originally reported issue is really that paru -Syu provides users no hint foreign pkgs outside the repo aren't being checked. I opened Morganamilo/paru#1530 to document this.

@pfeifferj pfeifferj closed this Apr 9, 2026
@popzxc

popzxc commented Apr 9, 2026

Copy link
Copy Markdown

Thank you for a quick update!
BTW, paru is awesome ❤️

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