Smart 1.4.1 error in Mageia 4 x86_64

Anders F Björklund afb at algonet.se
Sun Mar 9 13:02:23 PDT 2014


Frater AEC wrote:

> Hi!
> 
> Smart Package Manager 1.4.1 worked well in Mageia 3. But in Mageia 4 displays the following error:
> 
> # smart update
> BDB2053 Freeing read locks for locker 0x4c3a: 10809/140400680576768
> BDB2053 Freeing read locks for locker 0x4c3c: 10809/140400680576768
> Traceback (most recent call last):
>   File "/usr/bin/smart", line 200, in <module>
>     main(sys.argv[1:])
>   File "/usr/bin/smart", line 173, in main
>     exitcode = iface.run(opts.command, opts.argv)
>   File "/usr/lib64/python2.7/site-packages/smart/interface.py", line 53, in run
>     result = _command.main(self._ctrl, opts)
>   File "/usr/lib64/python2.7/site-packages/smart/commands/update.py", line 81, in main
>     ctrl.reloadChannels()
>   File "/usr/lib64/python2.7/site-packages/smart/control.py", line 388, in reloadChannels
>     if not channel.fetch(self._fetcher, progress):
>   File "/usr/lib64/python2.7/site-packages/smart/channels/urpmi.py", line 100, in fetch
>     mirrors = self.loadMirrors(item.getTargetPath())
>   File "/usr/lib64/python2.7/site-packages/smart/channels/urpmi.py", line 73, in loadMirrors
>     key, entry = item.split("=")
> ValueError: need more than 1 value to unpack
> 
> This problem happens to anyone else? Any tips on how to resolve?

Apparently Mageia 4 changed their mirror format to something incompatible.

If you can check what the mirrorurl of the channel configuration is,
maybe that's enough to write a patch* for an updated "urpmi" handler ?

Hopefully it's not as bad as last time, where the repo had the wrong sizes...


* https://github.com/smartpm/smart/blob/master/smart/channels/urpmi.py#L65

--anders


More information about the Smart mailing list