diff options
Diffstat (limited to 'lib/MDV/Draklive')
-rw-r--r-- | lib/MDV/Draklive/Config.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Config.pm b/lib/MDV/Draklive/Config.pm index 4acd070..5fba167 100644 --- a/lib/MDV/Draklive/Config.pm +++ b/lib/MDV/Draklive/Config.pm @@ -77,8 +77,9 @@ sub complete_config { $live->{settings}{arch} ||= chomp_(`rpm --eval '%{_target_cpu}'`); $live->{media}{title} ||= "live"; - bless $live->{media}, 'MDV::Draklive::Media'; - bless $live->{replicator}{media}, 'MDV::Draklive::Media' if $live->{replicator}{media}; + foreach ($live->{media}, if_($live->{replicator}{media}, $live->{replicator}{media})) { + bless $_, 'MDV::Draklive::Media'; + } mkdir_p($live->get_builddir); mkdir_p($live->get_system_root); |