smart hangs if a the symlinked file doesnt exist

Bug #243969 reported by Rehan Khan
2
Affects Status Importance Assigned to Milestone
Smart Package Manager
New
Undecided
Unassigned

Bug Description

Imported: http://tracker.labix.org/issue326
Reason for Import: Review Issue and fix

Revision history for this message
Rehan Khan (rasker) wrote :

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/interfaces/gtk/interactive.py",
line 180, in callback
    exec code in globals

  File "<callback>", line 1, in <module>

File "/usr/lib64/python2.5/site-packages/smart/interfaces/gtk/interactive.py",
line 709, in editChannels
    self.rebuildCache()

File "/usr/lib64/python2.5/site-packages/smart/interfaces/gtk/interactive.py",
line 417, in rebuildCache
    self._ctrl.reloadChannels()

  File "/usr/lib64/python2.5/site-packages/smart/control.py", line 376, in
reloadChannels
    self._cache.load()

  File "/usr/lib64/python2.5/site-packages/smart/backends/rpm/header.py", line
202, in load
    for h, offset in self.getHeaders(prog):

  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
encontrado: '/mnt/ext3/linux/mandriva/mde/2007.1/x86_64/32-bit/libkdecore4-3.5.7-18mde2007.1.i586.rpm'

The
file /mnt/ext3/linux/mandriva/mde/2007.1/x86_64/32-bit/libkdecore4-3.5.7-18mde2007.1.i586.rpm
is a symlink that points
to /mnt/ext3/linux/mandriva/mde/2007.1/i586/kde-3.5.7/libkdecore4-3.5.7-18mde2007.1.i586.rpm
but this file doesnt exist anymore so smart hanged but that shouldnt be a
reason to smart hang...

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.