Bug 1520027 - units_cur writes currency.units always to current directory, no matter where you are
Summary: units_cur writes currency.units always to current directory, no matter where ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: units
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-02 07:12 UTC by Martin Tarenskeen
Modified: 2017-12-19 19:45 UTC (History)
2 users (show)

Fixed In Version: units-2.14-5.fc27
Clone Of:
Environment:
Last Closed: 2017-12-19 19:45:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Tarenskeen 2017-12-02 07:12:28 UTC
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.

Comment 1 Kamil Dudka 2017-12-04 08:22:47 UTC
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

Comment 2 Martin Tarenskeen 2017-12-04 09:07:35 UTC
(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?

Comment 3 Kamil Dudka 2017-12-04 11:14:09 UTC
Indeed.  The following commit will fix it:

https://src.fedoraproject.org/cgit/rpms/units.git/commit/?id=2a208a84

Comment 4 Fedora Update System 2017-12-04 11:20:57 UTC
units-2.14-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d890370f74

Comment 5 Fedora Update System 2017-12-08 23:26:57 UTC
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

Comment 6 Fedora Update System 2017-12-19 19:45:33 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.