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

Conflicting file with ofxstatement package: ofxstatement/tests/samples/config.ini #14

Open
archont00 opened this issue Jan 10, 2021 · 3 comments

Comments

@archont00
Copy link
Contributor

Hi,

Arch Linux:

error: failed to commit transaction (conflicting files)
ofxstatement-revolut-git: /usr/lib/python3.9/site-packages/ofxstatement/tests/samples/config.ini exists in filesystem (owned by ofxstatement)
Errors occurred, no packages were upgraded.

It would be better to rename your config.ini to whatever else to avoid the conflict.

@mlaitinen
Copy link
Owner

I'd like to try to reproduce this in my own environment. What steps lead to this situation?

@archont00
Copy link
Contributor Author

archont00 commented Feb 28, 2021

Run:

$ pacman -Ql ofxstatement | grep config.ini
ofxstatement /usr/lib/python3.9/site-packages/ofxstatement/tests/samples/config.ini

and

$ pacman -Ql ofxstatement-revolut-git | grep config.ini
ofxstatement-revolut-git /usr/lib/python3.9/site-packages/ofxstatement/tests/samples/config.ini

I.e., when the user tries to install ofxstatement-revolut-git, it will fail because the config.ini already exists and it "owned" by another package.

EDIT: Alternatively, I could update the PKGBUILD file so that it renames the conflicting config.ini. On the other hand, I assume it may be a general problem for other Linux distributions.

@archont00
Copy link
Contributor Author

The PKGBUILD for ofxstatement and ofxstatement-revolut-git does not do any magic, it just runs

$ python setup.py install --root="$pkgdir"

And then it packs all the installed files into a pkg file, where $pkgdir is replaced by the actual filesystem root /.
pacman is a package manager, which unpacks the contents of the pkg file to the real filesystem.

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

No branches or pull requests

2 participants