FS#22843 - [pkgtools] Local config ($HOME/.config/pkgtools/pkgfile.conf) breaks pkgfile working

Attached to Project: Community Packages
Opened by Stanislav GE (giner) - Thursday, 10 February 2011, 19:02 GMT
Last edited by Gavin Bisesi (Daenyth) - Saturday, 12 February 2011, 14:55 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Gavin Bisesi (Daenyth)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
pkgfile becomes not working after: echo CMD_SEARCH_ENABLED=1 > $HOME/.config/pkgtools/pkgfile.conf

Traceback (most recent call last):
File "/usr/bin/pkgfile", line 434, in <module>
main()
File "/usr/bin/pkgfile", line 363, in main
dict_options = load_config('pkgfile.conf')
File "/usr/bin/pkgfile", line 85, in load_config
options[k] = os.path.expanduser(tmp[k])
File "/usr/lib/python2.7/posixpath.py", line 252, in expanduser
if not path.startswith('~'):
AttributeError: 'int' object has no attribute 'startswith'


Additional info:
pkgtools 22-1
This task depends upon

Closed by  Gavin Bisesi (Daenyth)
Saturday, 12 February 2011, 14:55 GMT
Reason for closing:  Works for me
Additional comments about closing:  Already fixed in git
Comment by Gavin Bisesi (Daenyth) - Saturday, 12 February 2011, 14:53 GMT
I can't reproduce this so far. Can you attach your full pkgfile.conf?
Comment by Gavin Bisesi (Daenyth) - Saturday, 12 February 2011, 14:54 GMT
Ah sorry, I had pkgtools-git installed. It's already resolved by incidental code changes.

Loading...