summaryrefslogtreecommitdiffstats
path: root/draklive-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-20 00:32:32 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-20 00:32:32 +0000
commitd448ddcadb2a30d5efe408db1b4098c019a8cc74 (patch)
tree7da113fde22c21dd3724b9c3671ef05f6e83f672 /draklive-install
parent271052b8cd469df88463a376607d77dd3215d1f2 (diff)
downloaddraklive-install-d448ddcadb2a30d5efe408db1b4098c019a8cc74.tar
draklive-install-d448ddcadb2a30d5efe408db1b4098c019a8cc74.tar.gz
draklive-install-d448ddcadb2a30d5efe408db1b4098c019a8cc74.tar.bz2
draklive-install-d448ddcadb2a30d5efe408db1b4098c019a8cc74.tar.xz
draklive-install-d448ddcadb2a30d5efe408db1b4098c019a8cc74.zip
use a hash for correctness (total size should depend on the source)
Diffstat (limited to 'draklive-install')
-rwxr-xr-xdraklive-install6
1 files changed, 3 insertions, 3 deletions
diff --git a/draklive-install b/draklive-install
index 7ae8dbc..fa2780d 100755
--- a/draklive-install
+++ b/draklive-install
@@ -155,10 +155,10 @@ sub build_copy_command {
sub get_total_size {
my ($in, $source) = @_;
- state $total;
- return $total if $total;
+ state %total;
+ return $total{$source} if $total{$source};
my $_wait = $in->wait_message('', N("Computing total size"));
- $total = first(split(/\s+/, `du -sbx $source 2>/dev/null`));
+ $total{$source} = first(split(/\s+/, `du -sbx $source 2>/dev/null`));
}
sub copy_root {