Skip to content

flatpak.packages does not handle multiple remotes capable of providing a package #1346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Griffoen opened this issue Apr 24, 2025 · 0 comments · May be fixed by #1348
Open

flatpak.packages does not handle multiple remotes capable of providing a package #1346

Griffoen opened this issue Apr 24, 2025 · 0 comments · May be fixed by #1348

Comments

@Griffoen
Copy link

Describe the bug

flatpak.packages does not handle multiple remotes capable of providing a package

To Reproduce

  • Using a new workstation install of Fedora 42
  • run pyinfra @local flatpak.packages org.libreoffice.LibreOffice -yvv

The following error is received:

--> Loading config...
--> Loading inventory...
--> Connecting to hosts...
    [@local] Connected

--> Preparing operations...
--> Preparing operation...
    [@local] Ready: packages

--> Skipping change detection
--> Beginning operation run...
--> Starting operation: flatpak.packages (org.libreoffice.LibreOffice)
[@local] >>> sh -c '! command -v flatpak >/dev/null || flatpak list --columns=application'
    [@local] Loaded fact flatpak.FlatpakPackages
[@local] >>> sh -c 'flatpak install --noninteractive org.libreoffice.LibreOffice'
    [@local] Remotes found with refs similar to ‘org.libreoffice.LibreOffice’:
    [@local] 
    [@local]    1) ‘fedora’ (system)
    [@local]    2) ‘flathub’ (system)
    [@local] 
    [@local] Which do you want to use (0 to abort)? [0-2]: 0
    [@local] error: No remote chosen to resolve matches for ‘org.libreoffice.LibreOffice’
    [@local] Error: executed 0 commands

--> Disconnecting from hosts...
--> pyinfra error: No hosts remaining!

Expected behavior

Pyinfra should select one of the remotes itself, prompt the user for it, or make the preferred remote an option on the flatpak.packages command.

Meta

  • pyinfra is installed using uv (uvx pyinfra @local flatpak.packages org.libreoffice.LibreOffice -yvv)
  • Include output of pyinfra --support.
     Platform: Linux-6.14.2-300.fc42.x86_64-x86_64-with-glibc2.41
     Release: 6.14.2-300.fc42.x86_64
     Machine: x86_64
   pyinfra: v3.2
     click: v8.1.8
     distro: v1.9.0
     gevent: v25.4.1
     jinja2: v3.1.6
     packaging: v25.0
     paramiko: v3.5.1
     python-dateutil: v2.9.0.post0
     pywinrm: v0.5.0
     setuptools: v79.0.0
     typeguard: v4.4.2
     typing-extensions: v4.13.2
   Executable: /home/$MY_USERNAME/.local/bin/pyinfra
   Python: 3.13.3 (CPython, GCC 15.0.1 20250410 (Red Hat 15.0.1-0))
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 a pull request may close this issue.

1 participant