Bug 24372

Summary: phatch needs locate
Product: Sisyphus Reporter: Alex Negulescu <alecs>
Component: phatchAssignee: Fr. Br. George <george>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3    
Version: unstable   
Hardware: all   
OS: Linux   

Description Alex Negulescu 2010-10-20 16:34:57 MSD
Running phatch without slocate installed gives:

Traceback (most recent call last):
  File "/usr/bin/phatch", line 10, in <module>
    import phatch
  File "/usr/lib/python2.6/site-packages/phatch/__init__.py", line 25, in <module>
    init_config_paths()
  File "/usr/lib/python2.6/site-packages/phatch/core/config.py", line 225, in init_config_paths
    from lib.fonts import set_font_cache
  File "/usr/lib/python2.6/site-packages/phatch/lib/fonts.py", line 53, in <module>
    sys.exit(_('Please install "%s" first.') % 'locate')
NameError: name '_' is not defined

slocate should be a dependency to phatch.
Comment 1 Fr. Br. George 2010-11-06 19:34:11 MSK
Aw yes. Still can't learn that can be no locate in system.
Comment 2 Repository Robot 2010-11-06 19:40:41 MSK
phatch-0.2.7.1-alt2 -> sisyphus:

* Sat Nov 06 2010 Fr. Br. George <george@altlinux> 0.2.7.1-alt2
- Dependency to /usr/bin/locate added (closes #24372)