smart crashes if a package is removed from a media
Bug #243955 reported by
Rehan Khan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Smart Package Manager |
New
|
Undecided
|
Unassigned |
Bug Description
Imported: http://
Reason for Import:Patch review, Issue Review
To post a comment you must log in.
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 ####### ####### ####### ####### ####### # ( sys.argv[ 1:]) opts.command, opts.argv) python2. 4/site- packages/ smart/interface .py", line 53, in main(self. _ctrl, opts) python2. 4/site- packages/ smart/commands/ update. py", line 77, reloadChannels( ) python2. 4/site- packages/ smart/control. py", line 375, in _cache. load() python2. 4/site- packages/ smart/backends/ rpm/header. py", line linux/mandriva/ 2007/x86_ 64/updates/ lib64koffice2- progs-1. 5.91-3. 2mdv2007. 0.x86_64. rpm'
Carregando o cache...
Traceback (most recent call last):#
99%)
File "/usr/bin/smart", line 194, in ?
main(
File "/usr/bin/smart", line 167, in main
exitcode = iface.run(
File "/usr/lib64/
run
result = _command.
File "/usr/lib64/
in main
ctrl.
File "/usr/lib64/
reloadChannels
self.
File "/usr/lib64/
681, in loadFileProvides
file = open(filepath)
IOError: [Errno 2] No such file or
directory: '/mnt/ext3/
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 ? sys.argv[ 1:])
main(
File "/usr/bin/smart", line 167, in main opts.command, opts.argv)
exitcode = iface.run(
File "/usr/lib64/ python2. 4/site- packages/ smart/interface s/gtk/interacti ve.py", _ctrl.reloadCha nnels()
line 373, in run
self.
File "/usr/lib64/ python2. 4/site- packages/ smart/control. py", line 375, in _cache. load()
reloadChannels
self.
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 linux/mandriva/ 2007/x86_ 64/updates/ lib64koffice2- progs-1. 5.91-3. 2mdv2007. 0.x86_64. rpm'
encontrado: '/mnt/ext3/
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 tracker. labix.org/ issue283
to this situation, please take a look to issue 283 ->
http://
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...