From f3756181934d4b1f2b02c8ed3dff019ea0319c69 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 20 Nov 2006 13:29:50 +0000 Subject: add a FIXME --- urpmi.removemedia | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/urpmi.removemedia b/urpmi.removemedia index f042ff56..dfc7ea3f 100755 --- a/urpmi.removemedia +++ b/urpmi.removemedia @@ -82,11 +82,15 @@ if ($options{all}) { @toremove or die N("the entry to remove is missing\n(one of %s)\n", join(", ", @entries)); } -my @selected = $urpm->select_media_by_name(\@toremove, { strict_match => $options{strict_match} }) +my @selected = $urpm->select_media_by_name(\@toremove, $options{strict_match}) or exit 1; $urpm->remove_media(\@selected); -$urpm->update_media(noclean => $options{noclean}); +if ($options{noclean}) { + #- FIXME: AFAIK it is broken because function below use {depslist} which we don't clean here + urpm::remove_obsolete_headers_in_cache($urpm); +} +$urpm->write_urpmi_cfg; exit(0); -- cgit v1.2.1