// $Id$ ?>
This tool will give you the right command to type in order to setup urpmi.
include("urpmiweb.inc"); $list_mdkver=''; $list_location=''; function parse_line($liste_line) { global $list_arch, $list_mdkver, $list_location, $user, $list, $mach; if (!is_array($liste_line)) return; while (list($key,$val)=each($liste_line)) { $list_arch[$val['arch']]=1; $list_mdkver[$val['mdkver']]=1; switch ($val['arch']) { case "*": case "noarch": case $user['arch']: break; default: $val['url']=""; } switch ($val['mdkver']) { case "*": case $user['mdkver']: break; default: $val['url']=""; } $mach=parse_url($val['url']); $val['mach']=$mach['host']; if ($val['url']) $list[$val['name']][$mach["host"]]=$val; } } if (!$user['mdkver']) $user['mdkver']="9.0"; if (!$user['arch']) $user['arch']='i586'; parse_line(readfiles()); ?>Cooker is a devel (cutting-edge, unstable), don't use it if you're not sure what you are doing.
main is the core of the mandrake distro, updates is official updates, only these two have offical Mandrake's support ! plf is for mandrake distro, but don't come from MandrakeSoft, see PLF page.
A '*' will restrict the selection to sources that can be applied to all.
reset($list);
while (list($key,$val)=each($list))
{
if ($val[$mirror[$key]] && $selection[$key])
{
echo "urpmi.addmedia ".$globinfo[':urpmiopt'][$key]." $key ".$val[$mirror[$key]]['url']."
\n";
}
}
?>
}
else
{
?>
I am very sorry, there are no mirror available for your system
} ?>$Id$