diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-03-20 19:52:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-03-20 19:52:37 +0000 |
commit | b6a2818a7b0a9f3335123a0008cd345382eccc2c (patch) | |
tree | 04685290edba2b19f6e5fc4bb5561c0cebc0ec75 /Rpmdrake | |
parent | 238a06bbb96f3aed0ae71b736eb9f807325a6914 (diff) | |
download | rpmdrake-b6a2818a7b0a9f3335123a0008cd345382eccc2c.tar rpmdrake-b6a2818a7b0a9f3335123a0008cd345382eccc2c.tar.gz rpmdrake-b6a2818a7b0a9f3335123a0008cd345382eccc2c.tar.bz2 rpmdrake-b6a2818a7b0a9f3335123a0008cd345382eccc2c.tar.xz rpmdrake-b6a2818a7b0a9f3335123a0008cd345382eccc2c.zip |
(get_description) enable to go on if no media_types were retrieved
(needed for next commit)
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/gui.pm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 8faa81f2..23991afc 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -150,13 +150,12 @@ sub get_description { } sub get_string_from_keywords { - my ($medium) = @_; - return if !$medium->{mediacfg}; - my ($distribconf, $medium_name) = @{$medium->{mediacfg}}; - - return if !$distribconf; - - my @media_types = split(':', $distribconf->getvalue($medium_name, 'media_type')); + my ($medium, $name) = @_; + my @media_types; + if ($medium->{mediacfg}) { + my ($distribconf, $medium_name) = @{$medium->{mediacfg}}; + @media_types = split(':', $distribconf->getvalue($medium_name, 'media_type')) if $distribconf; + } my $unsupported = N("It is <b>not supported</b> by Mageia."); my $dangerous = N("It may <b>break</b> your system."); |