smart crashes if a package is removed from a media

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

Bug Description

Imported: http://tracker.labix.org/issue265
Reason for Import:Patch review, Issue Review

Revision history for this message
Rehan Khan (rasker) wrote :
Revision history for this message
Rehan Khan (rasker) wrote :
Download full text (3.9 KiB)

msg1082 (view) Author: mmodem Date: 2007-01-24.19:24:57

Even if i try to update the channel (media) from wich previously removed the
package, i continue getting errors:

]# smart update mde_local
Carregando o cache...
Traceback (most recent call last):##################################### (
99%)
  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])
  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)
  File "/usr/lib64/python2.4/site-packages/smart/interface.py", line 53, in
run
    result = _command.main(self._ctrl, opts)
  File "/usr/lib64/python2.4/site-packages/smart/commands/update.py", line 77,
in main
    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
681, in loadFileProvides
    file = open(filepath)
IOError: [Errno 2] No such file or
directory: '/mnt/ext3/linux/mandriva/2007/x86_64/updates/lib64koffice2-progs-1.5.91-3.2mdv2007.0.x86_64.rpm'

At this point i dont see a way to run smart without having to remove the
config file wich is said, since i have many channels configured.
This is truly annoying...

msg1081 (view) Author: mmodem Date: 2007-01-24.19:11:12

Well i have removed some packages fro my local rpm media and when i runned
smart it outputed again a error about a missing rpm and then crashes, here is
the error:

Traceback (most recent call last):

  File "/usr/bin/smart", line 194, in ?
    main(sys.argv[1:])

  File "/usr/bin/smart", line 167, in main
    exitcode = iface.run(opts.command, opts.argv)

File "/usr/lib64/python2.4/site-packages/smart/interfaces/gtk/interactive.py",
line 373, in run
    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
681, in loadFileProvides
    file = open(filepath)

IOError: [Errno 2] Arquivo ou diretório não
encontrado: '/mnt/ext3/linux/mandriva/2007/x86_64/updates/lib64koffice2-progs-1.5.91-3.2mdv2007.0.x86_64.rpm'

So appears that this patch isnt really working.

msg1078 (view) Author: mmodem Date: 2007-01-23.23:08:32

The patch seams to work, but still there is a problem to fix that is related
to this situation, please take a look to issue 283 ->
http://tracker.labix.org/issue283

msg1054 (view) Author: netmask Date: 2006-12-26.17:34:00

Could you try the attached patch?

msg1047 (view) Author: mmodem Date: 2006-12-20.17:02:40

Yes i have "recursive" option activated, i always activate it since i have
subdirs in my local medias.

The media url is '/mnt/ext3/linux/mandriva/2007/x86_64' but i dont in wich
that can help or do any difference.

msg1043 (view) Author: netmask Date: 2006-12-20.12:55:05

What is the baseurl of this rpm-dir channel? Do you have 'recursive=true' for
the channel?

msg1040 (view) Author: mmodem Date: 2006-12-17.15:15:33

If i remove a package from a local media (rpm-dir media) and then start smart
and when updating cache it outp...

Read more...

Revision history for this message
Glenn D. (doiggl-hotmail) wrote :

Hello,
This indicates to me[1] that meta-data needs updating and reloading., then retry the update command.
--Glenn

[1]
IOError: [Errno 2] Arquivo ou diretório não
encontrado: '/mnt/ext3/linux/mandriva/2007/x86_64/updates/lib64koffice2-progs-1.5.91-3.2mdv2007.0.x86_64.rpm'

An example below:
# smart channel --show
# smart update

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.