From c8a76cf2d0e2e54a4758c90d1fd69baae2564029 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 10 Dec 2012 14:07:01 +0000 Subject: (media_screen) no media is a critical error --- perl-install/install/NEWS | 1 + perl-install/install/any.pm | 1 + 2 files changed, 2 insertions(+) diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index e5170b237..b5e16c744 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,6 +1,7 @@ - media choice step: o blacklist unwanted media instead of whitelisting wanted ones (fix dual cd where media names are not the regular ones) + o no media is a critical error Version 15.6 - 10 December 2012 diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 29fd8e1de..069ed5583 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -421,6 +421,7 @@ sub setPackages { media_screen($o) if !$::auto_install; my @choosen_media = map { $_->{name} } grep { !$_->{ignore} } @{$urpm->{media}}; log::l("choosen media: ", join(',', @choosen_media)); + die "no choosen media" if !@choosen_media; # actually read synthesis now we have all the ones we want: require urpm::media; -- cgit v1.2.1