smart fails when founds a symlink that ponts to nothing

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

Bug Description

Imported: http://tracker.labix.org/issue283

Reason: Smart should handle broken symlinks in a local repository (as well as remote repositories). Alternatively it should report 'file not found' for both scenarios

further details: https://blueprints.launchpad.net/smart/+spec/bug-reporting-migration

msg1077 (view) Author: mmodem Date: 2007-01-23.22:50:23

I my local rpm-dir repository i have some symlinks, but lately one of those
symlinks wasnt pointin anymore to a package since i erase it, so when running
smart and when loading cache it outputs this error and then freezes:

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/smart/interfaces/gtk/interactive.py",
line 180, in callback
    exec code in globals

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

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

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

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

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

  File "/usr/lib64/python2.4/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/x86_64/32bit/libalsa2-1.0.13-3.mdv2007.0mde.i586.rpm'

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.