Smart updated with more urpmi functionality implemented
Over the last week I’ve been messing a bit with smart again. :)
I’ve now merged in 1.1.1 from trunk into my own mandriva branch and
started work on a urpmi channelsync plugin. This plugin will read urpmi’s configuration from /etc/urpmi/urpmi.cfg, use the same metalink data under /var/lib/urpmi
and has also initial mirrorlist support using urpmi’s mirrors cache from /var/cache/urpmi/mirrors.cache, picking the first (thus closest) mirror from that list.
There’s a lot of room from improvement, and it’s pretty dependent on urpmi’s data for all of this, ie. it doesn’t support quite yet to fetch mirror lists itself, picking the
nearest mirror or anything by itself yet, but it works quite well if urpmi has done much of it’s job for it, which is usually the case and makes it work sufficiently
for it’s intended purpose so far!
I will continue to work on implementing support for using several mirrors, generate metalinks, set up and maintain it’s own similar configuration independent of urpmi ++, but this is quite neat progress so far since it makes using smart on a Mandriva system easier and nicer to use. :D
Yesterday I updated smart in cooker with a snapshot of my branch, so people using smart on cooker will from now on find their urpmi medias listed as channels in smart, prefixed with ‘urpmisync-’. Note that these channels aren’t stored persistently in smart configuration, but will always reuse whatever that’s urpmi’s current configuration.
Oh, and also, this obsoletes ‘urpmi2smart’ and the earlier version of ‘distro.py’.