pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

xbps.packages: handle forced xbps upgrade

Open lemmi opened this issue 7 months ago • 1 comments

Describe the bug

When updates for xbps are available, they need to be installed first:

The 'xbps' package must be updated, please run `xbps-install -u xbps`

The way the xbps.packages operation is written, it's not possible to achieve this.

To Reproduce

  • Wait for xbps updates.
  • Try anything with xbps.packages or xbps.update

Expected behavior

  • Ensure xbps is updated before any other operations are done.

lemmi avatar May 27 '25 03:05 lemmi

We can probably add a new fact to check for this before passing to the shared package install method, and call update if needed.

Fizzadar avatar Jun 08 '25 12:06 Fizzadar