summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-06-26 19:31:09 +0000
committerOlivier Blin <oblin@mandriva.com>2009-06-26 19:31:09 +0000
commit12ffcfabb28cd1d161d97113d508760742d47ef0 (patch)
tree6319ff6d3434f2b80dd3aab05f588c14896e5c03 /lib
parent366212ab2e5fa5157c0f5282d2718d3d31427d25 (diff)
downloaddraklive-12ffcfabb28cd1d161d97113d508760742d47ef0.tar
draklive-12ffcfabb28cd1d161d97113d508760742d47ef0.tar.gz
draklive-12ffcfabb28cd1d161d97113d508760742d47ef0.tar.bz2
draklive-12ffcfabb28cd1d161d97113d508760742d47ef0.tar.xz
draklive-12ffcfabb28cd1d161d97113d508760742d47ef0.zip
factorize
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Draklive/Config.pm5
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);