diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-20 13:29:50 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-20 13:29:50 +0000 |
commit | f3756181934d4b1f2b02c8ed3dff019ea0319c69 (patch) | |
tree | e9af137809de93ee0c3f6709fb1a46a6bfc93ea2 | |
parent | b94b7b1a32ca80bde481b18a455e30646def084c (diff) | |
download | urpmi-f3756181934d4b1f2b02c8ed3dff019ea0319c69.tar urpmi-f3756181934d4b1f2b02c8ed3dff019ea0319c69.tar.gz urpmi-f3756181934d4b1f2b02c8ed3dff019ea0319c69.tar.bz2 urpmi-f3756181934d4b1f2b02c8ed3dff019ea0319c69.tar.xz urpmi-f3756181934d4b1f2b02c8ed3dff019ea0319c69.zip |
add a FIXME
-rwxr-xr-x | urpmi.removemedia | 8 |
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); |