aura icon indicating copy to clipboard operation
aura copied to clipboard

`ignores` in Config File Does Not Prevent "Install anyway?" Prompt for Installed AUR Package in Package Base

Open streetsamurai00mi opened this issue 9 months ago • 2 comments

  • Summary: When running aura -Au, Aura prompts to "Install anyway?" the already installed AUR package ttf-ms-win11 despite it being listed in the ignores section of the config file. The package ttf-ms-win11 is part of the Package Base ttf-ms-win11 (https://aur.archlinux.org/pkgbase/ttf-ms-win11), and I am concerned whether this affects how Aura handles ignores.

  • Steps to Reproduce:

    1. Add ignores = ["ttf-ms-win11"] to ~/.config/aura/config.toml in the [aur] section.
    2. Ensure the package ttf-ms-win11 is already installed on the system.
    3. Run aura -Au to check for updates to AUR packages.
    4. Observe the prompt: aura :: ttf-ms-win11 is marked 'ignored'. Install anyway? [Y/n].
  • Expected Behavior: According to the Aura User Guide, the ignores list should prevent Aura from updating or prompting to install packages. Since ttf-ms-win11 is in ignores and already installed, Aura should not prompt to install it during update.

  • Actual Behavior: Aura still prompts to "Install anyway" ttf-ms-win11. If --noconfirm is used, Aura automatically rebuilds the package, ignoring the ignores setting.

  • Environment:

    • OS: Arch Linux
    • Aura Version: 4.0.8
    • Package: ttf-ms-win11 (AUR, not a dependency of any other package)
  • Additional Notes:

    • The package ttf-ms-win11 is part of the Package Base ttf-ms-win11 (https://aur.archlinux.org/pkgbase/ttf-ms-win11). I suspect that being part of a Package Base affects how Aura handles ignores, especially if the Package Base contains multiple subpackages or requires updates.
    • Similar Example: The Package Base clion (https://aur.archlinux.org/pkgbase/clion) contains subpackages like clion, clion-jre, etc.
  • Request:

    • Please clarify if this is the intended behavior of Aura when handling packages within a Package Base.
    • If not, consider fixing the ignores functionality to fully skip ignored packages, even when they are part of a Package Base with changes.
  • Closing Note:
    Thank you for your time and support! If you need more information, feel free to let me know.

streetsamurai00mi avatar Mar 24 '25 11:03 streetsamurai00mi

Additional Info: In my config file, I have ignores = ["steamguard-cli", "ttf-ms-win11"]. After running aura -Au, the package steamguard-cli is ignored correctly (Installed: 0.15.0-1, AUR: 0.16.0-1) with no prompt displayed, while ttf-ms-win11 still triggers the "Install anyway" prompt.

streetsamurai00mi avatar Mar 24 '25 11:03 streetsamurai00mi

Thanks for the report. Looks like I'm already accounting for the interaction between ignores and -Au, but it seems there's some subtly involving package bases. I'll look into this.

fosskers avatar Mar 26 '25 01:03 fosskers