Description of problem: units_cur writes a file "currency.units" always to the present working directory Version-Release number of selected component (if applicable): units-2.14-4.fc27.x86_64 How reproducible: always Steps to Reproduce: 1. cd ~/path/to/any/directory 2. units_cur Actual results: ~/path/to/any/directory/currency.units is created Expected results: /usr/share/units/currency.units should be created or a location in ${HOME} where units can always find it. Additional info: I tried as root and normal user. Same result.
I think it works as documented. See the usage info: % units_cur -h usage: units_cur [-h] [-v] [filename] Update currency information for 'units' into the specified filename or if no filename is given, the default: 'currency.units'. The special filename '-' will send the currency data to stdout. positional arguments: filename the file to update optional arguments: -h, --help show this help message and exit -v, --verbose display details when fetching currency data
(In reply to Kamil Dudka from comment #1) > I think it works as documented. See the usage info: > > % units_cur -h > usage: units_cur [-h] [-v] [filename] > > Update currency information for 'units' into the specified filename or if no > filename is given, the default: 'currency.units'. The special filename '-' > will send the currency data to stdout. > > positional arguments: > filename the file to update > > optional arguments: > -h, --help show this help message and exit > -v, --verbose display details when fetching currency data Hmm. Makes sense. I guess you are right. But it hasn't always worked like this, has it?
Indeed. The following commit will fix it: https://src.fedoraproject.org/cgit/rpms/units.git/commit/?id=2a208a84
units-2.14-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d890370f74
units-2.14-5.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d890370f74
units-2.14-5.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.