summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-08-04 00:07:07 +0000
committerOlivier Blin <oblin@mandriva.com>2009-08-04 00:07:07 +0000
commita6b0019b280a33c616cb92f2d393959c4fadd049 (patch)
treede5136f341a9a3e35c09855ea04e6616a43e8031 /lib
parentae9a7bbc30fb8e4c3d8aa6962bae9645ded6f74d (diff)
downloaddraklive-a6b0019b280a33c616cb92f2d393959c4fadd049.tar
draklive-a6b0019b280a33c616cb92f2d393959c4fadd049.tar.gz
draklive-a6b0019b280a33c616cb92f2d393959c4fadd049.tar.bz2
draklive-a6b0019b280a33c616cb92f2d393959c4fadd049.tar.xz
draklive-a6b0019b280a33c616cb92f2d393959c4fadd049.zip
really avoid vivification
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Draklive/Config.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Config.pm b/lib/MDV/Draklive/Config.pm
index b23b966..7b83f0f 100644
--- a/lib/MDV/Draklive/Config.pm
+++ b/lib/MDV/Draklive/Config.pm
@@ -77,7 +77,11 @@ sub complete_config {
$live->{settings}{arch} ||= chomp_(`rpm --eval '%{_target_cpu}'`);
$live->{media}{title} ||= "live";
- foreach ($live->{media}, if_($live->{replicator}, $live->{replicator}{media}), if_($live->{oem_rescue}, $live->{oem_rescue}{media})) {
+ foreach (
+ $live->{media},
+ ($live->{replicator} ? $live->{replicator}{media} : ()),
+ ($live->{oem_rescue} ? $live->{oem_rescue}{media} : ()),
+ ) {
bless $_, 'MDV::Draklive::Media';
}