From 3ac64f9297b539eb648f1ac5360636406a4e3ee6 Mon Sep 17 00:00:00 2001 From: Antoine Ginies Date: Thu, 24 Mar 2011 08:45:36 +0000 Subject: disable pre-check of package update in media, not really needed --- BCD/Media.pm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'BCD') diff --git a/BCD/Media.pm b/BCD/Media.pm index 49450f0..ed7b7c1 100644 --- a/BCD/Media.pm +++ b/BCD/Media.pm @@ -453,15 +453,15 @@ sub create_list { ### # do the job with update, find missing package from list # only if the media as udpate option enable - if ($media->{updates} eq "yes") { - my $cmd_find_missing_update = "LC_ALL=C sudo chroot $chroot_path urpmq --update --prefer $DISTRIB,$THEME $urpmq_options $urpmq_extra_opt $tested_wanted $tested_exclude 2> $urpmq_error_update"; - print_color("$LOG first attempt to run urpmq --update on media $media->{name} (to find all packages not availables in update)", $color); - system($cmd_find_missing_update); - # urpmq error found, so we have to remove some entry in the list of wanted packages - my $final_list_update = remove_notpresent($urpmq_error_update, $wanted); - my $cmd_do_it_update = "LC_ALL=C sudo -P chroot $chroot_path urpmq --update -a --prefer $DISTRIB,$THEME $urpmq_options $urpmq_extra_opt $tested_exclude"; - do_fork($final_list_update, "$list_filename" . "_update", $list_update, $cmd_do_it_update); - } +## if ($media->{updates} eq "yes") { +## my $cmd_find_missing_update = "LC_ALL=C sudo chroot $chroot_path urpmq --update --prefer $DISTRIB,$THEME $urpmq_options $urpmq_extra_opt $tested_wanted $tested_exclude 2> $urpmq_error_update"; +## print_color("$LOG first attempt to run urpmq --update on media $media->{name} (to find all packages not availables in update)", $color); +## system($cmd_find_missing_update); +## # urpmq error found, so we have to remove some entry in the list of wanted packages +## my $final_list_update = remove_notpresent($urpmq_error_update, $wanted); +## my $cmd_do_it_update = "LC_ALL=C sudo -P chroot $chroot_path urpmq --update -a --prefer $DISTRIB,$THEME $urpmq_options $urpmq_extra_opt $tested_exclude"; +## do_fork($final_list_update, "$list_filename" . "_update", $list_update, $cmd_do_it_update); +## } ### # select rpm from all media, find missing from list -- cgit v1.2.1