smart hangs if a the symlinked file doesnt exist
Bug #243969 reported by
Rehan Khan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Undecided
|
Unassigned |
Bug Description
Imported: http://
Reason for Import: Review Issue and fix
To post a comment you must log in.
msg1186 (view) Author: mmodem Date: 2007-08-26.17:16:37
I have added a local rpm repository and when updating cache it hanged with
this error:
Traceback (most recent call last):
File "/usr/lib64/ python2. 5/site- packages/ smart/interface s/gtk/interacti ve.py",
line 180, in callback
exec code in globals
File "<callback>", line 1, in <module>
File "/usr/lib64/ python2. 5/site- packages/ smart/interface s/gtk/interacti ve.py", rebuildCache( )
line 709, in editChannels
self.
File "/usr/lib64/ python2. 5/site- packages/ smart/interface s/gtk/interacti ve.py", _ctrl.reloadCha nnels()
line 417, in rebuildCache
self.
File "/usr/lib64/ python2. 5/site- packages/ smart/control. py", line 376, in _cache. load()
reloadChannels
self.
File "/usr/lib64/ python2. 5/site- packages/ smart/backends/ rpm/header. py", line (prog):
202, in load
for h, offset in self.getHeaders
File "/usr/lib64/ python2. 5/site- packages/ smart/backends/ rpm/header. py", line
630, in getHeaders
file = open(filepath)
IOError: [Errno 2] Arquivo ou diretório não linux/mandriva/ mde/2007. 1/x86_64/ 32-bit/ libkdecore4- 3.5.7-18mde2007 .1.i586. rpm'
encontrado: '/mnt/ext3/
The linux/mandriva/ mde/2007. 1/x86_64/ 32-bit/ libkdecore4- 3.5.7-18mde2007 .1.i586. rpm linux/mandriva/ mde/2007. 1/i586/ kde-3.5. 7/libkdecore4- 3.5.7-18mde2007 .1.i586. rpm
file /mnt/ext3/
is a symlink that points
to /mnt/ext3/
but this file doesnt exist anymore so smart hanged but that shouldnt be a
reason to smart hang...