aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2011-03-24 08:45:36 +0000
committerAntoine Ginies <aginies@mandriva.com>2011-03-24 08:45:36 +0000
commit3ac64f9297b539eb648f1ac5360636406a4e3ee6 (patch)
treee0cb192913e460170aff4cff952dc1a3df13ac3a
parente272dde32e0d45e1f8cdbf9bdc7c0cafdeb74266 (diff)
downloadbcd-3ac64f9297b539eb648f1ac5360636406a4e3ee6.tar
bcd-3ac64f9297b539eb648f1ac5360636406a4e3ee6.tar.gz
bcd-3ac64f9297b539eb648f1ac5360636406a4e3ee6.tar.bz2
bcd-3ac64f9297b539eb648f1ac5360636406a4e3ee6.tar.xz
bcd-3ac64f9297b539eb648f1ac5360636406a4e3ee6.zip
disable pre-check of package update in media, not really needed
-rw-r--r--BCD/Media.pm18
1 files changed, 9 insertions, 9 deletions
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