diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-10-04 13:00:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-10-04 13:00:07 +0000 |
commit | ada225ef512bc3823bd07f5c9c3f7481fa8400b6 (patch) | |
tree | da3d97b9a24a0c1f65b0c6bc7030ad3b633d0fde /Rpmdrake | |
parent | e5e8a86309f312def800a421a694d7e1ea7dc2e9 (diff) | |
download | rpmdrake-ada225ef512bc3823bd07f5c9c3f7481fa8400b6.tar rpmdrake-ada225ef512bc3823bd07f5c9c3f7481fa8400b6.tar.gz rpmdrake-ada225ef512bc3823bd07f5c9c3f7481fa8400b6.tar.bz2 rpmdrake-ada225ef512bc3823bd07f5c9c3f7481fa8400b6.tar.xz rpmdrake-ada225ef512bc3823bd07f5c9c3f7481fa8400b6.zip |
(warn_about_media) add all update media, like edit-urpm-sources
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/pkg.pm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index aa1aef4c..dcd90762 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -212,9 +212,13 @@ launch the Software Media Manager, and then add a `Security updates' medium. Then, restart %s.", $rpmdrake::myname_update)), myexit(-1); + my $is_update = $mirror->{type} eq 'updates'; add_medium_and_check( - $urpm, {}, - $update_name, $m, 'media_info/synthesis.hdlist.cz', update => 1, + $urpm, + { nolock => 1, distrib => 1 }, + $update_name, $m, probe_with => 'synthesis', update => 1, + usedistrib => 1, + if_($is_update, only_updates => 1), ); @update_medias = { name => $update_name }; #- hack to simulate a medium for parsing of descriptions } |