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

--overwrite flag not working at all #1280

Closed
sovanyio opened this issue Jun 3, 2020 · 1 comment
Closed

--overwrite flag not working at all #1280

sovanyio opened this issue Jun 3, 2020 · 1 comment

Comments

@sovanyio
Copy link

sovanyio commented Jun 3, 2020

Affected Version

yay v9.4.7 - libalpm v12.0.1

Issue

--overwrite flag is not working as expected. The same flag does work with pacman -S. Noticed this after trying to move from a pip installed python package to the arch package. (Yes I am aware that * is not recommended but I JUST did this and feel that this one python package is a relatively safe usage :), other globs did not work either, including *.py, and {package}/*.py). My partner and I have been noticing this a lot recently, didn't see an existing issue that seemed relevant to this. For AUR packages, we have resorted to manually deleting the conflicting files (though the better way would be to find the cached package and use the working pacman command).

Steps to reproduce

  1. Have a package file conflict
  2. Attempt to install through yay via search, yay python-matplotlib --overwrite '*'.
  3. Use pacman instead to avoid overwrite flag ignored pacman -S python-matplotlib ---overwrite '*'

Output

Don't think this is necessary, but the failure with yay and success with pacman are here: https://pastebin.com/tLTUgeMq

@gitfib
Copy link

gitfib commented Jun 17, 2020

I've just tried with --needed and indeed it doesn't pass the flags when searching
By the way, you could use yay -S python-matplotlib --overwrite '*' instead, which would work

@Jguer Jguer closed this as completed in 56760e1 Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants