summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-15 12:13:22 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-15 12:13:22 +0000
commit922a97e6758ec8e1297dfae89b8359b66c220abf (patch)
tree06a79b2689750f6949e3520114aaa6133fa71b0a
parent2a9a95b6fc49eec8bd0254f911df0becb2b744db (diff)
downloaddrakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.tar
drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.tar.gz
drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.tar.bz2
drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.tar.xz
drakiso-922a97e6758ec8e1297dfae89b8359b66c220abf.zip
use opts passed as parameter
-rwxr-xr-xdraklive4
1 files changed, 2 insertions, 2 deletions
diff --git a/draklive b/draklive
index 93cc15c..d0e3cba 100755
--- a/draklive
+++ b/draklive
@@ -1213,13 +1213,13 @@ sub get_disk_replicator_files {
}
sub create_usb_replicator {
- my ($live) = @_;
+ my ($live, $opts) = @_;
my %files = get_disk_replicator_files($live);
my $size = fold_left { $::a + $::b } map { directory_usage($_, 'apparent') } keys(%files);
$live->{replicator}{media}->supplement_slash_size($size);
- my $opts = { device => get_disk_replicator_path($live) };
+ local $opts->{device} = get_disk_replicator_path($live);
allocate_master($live, $live->{replicator}{media}, $opts);
format_master($live, $live->{replicator}{media}, $opts);
record_usb_replicator($live, $opts);