diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-06-26 19:31:09 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-06-26 19:31:09 +0000 |
commit | 12ffcfabb28cd1d161d97113d508760742d47ef0 (patch) | |
tree | 6319ff6d3434f2b80dd3aab05f588c14896e5c03 /lib | |
parent | 366212ab2e5fa5157c0f5282d2718d3d31427d25 (diff) | |
download | draklive-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.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); |