Yay: --overwrite flag not working at all

Created on 3 Jun 2020  路  1Comment  路  Source: Jguer/yay

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

Triage Bug

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

renom picture renom  路  3Comments

muesli picture muesli  路  4Comments

tapir picture tapir  路  3Comments

GhostKraft picture GhostKraft  路  4Comments

captn3m0 picture captn3m0  路  4Comments