mlaitinen / ofxstatement-revolut

ofxstatement plugin for parsing Revolut CSV bank statements
GNU General Public License v3.0
13 stars 13 forks source link

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

Open archont00 opened 3 years ago

archont00 commented 3 years ago

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 commented 3 years ago

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

archont00 commented 3 years ago

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 commented 3 years ago

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.