Skip to content
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

msys2: Check if package exists before removing it #25973

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jspam
Copy link

@jspam jspam commented Nov 18, 2024

base-devel 2024.11 does not contain pkgconf any more [1], and the attempt to remove it will resulting in "error: no targets specified (use -h for help)".

[1] msys2/MSYS2-packages@ad465ec

Resolves #25970.

Summary

Changes to recipe: lib/[version]

Motivation

Details


@AbrilRBS
Copy link
Member

Hi @jspam thanks a lot for taking the time to report the issue and create a PR, we appreciate it.

Me and @uilianries were talking this morning when checking your issue, and we were going to suggest checking if it's installed before removing it. This approach has the benefit of working with old devel versions, something like

ret = self.run(f'bash -l -c "pacman -Qs pkgconf"', ignore_errors=True)`
if ret == 0:
   # It's installed, do the removal

wdyt?

@AbrilRBS AbrilRBS self-assigned this Nov 18, 2024
base-devel 2024.11 does not contain pkgconf any more [1], and the attempt to
remove it will resulting in "error: no targets specified (use -h for help)".

[1] msys2/MSYS2-packages@ad465ec

Resolves conan-io#25970.
@jspam jspam changed the title msys2: Do not try to remove pkgconf package msys2: Check if package exists before removing it Nov 18, 2024
@jspam
Copy link
Author

jspam commented Nov 18, 2024

Good idea. I just didn't see any obvious way to access the old base-devel version, but I'm not an msys2 expert :)

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.

[package] msys2/cci.latest: fails to build when trying to remove pkgconf
2 participants