From ada225ef512bc3823bd07f5c9c3f7481fa8400b6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 4 Oct 2007 13:00:07 +0000 Subject: (warn_about_media) add all update media, like edit-urpm-sources --- Rpmdrake/pkg.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Rpmdrake') 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 } -- cgit v1.2.1