summaryrefslogtreecommitdiffstats
path: root/urpmi.removemedia
diff options
context:
space:
mode:
Diffstat (limited to 'urpmi.removemedia')
-rwxr-xr-xurpmi.removemedia8
1 files 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);