diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2022-11-26 21:56:25 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2022-11-26 21:56:25 +0000 |
commit | e1453222ea331c0e16e9b861c00511ca27c83156 (patch) | |
tree | 18515b1f440cdf7f2bb922d8833c569ba46d020a | |
parent | 02e5a6a3bb6cdeb5f16f2dd3a3cb6353b06aaaa8 (diff) | |
download | draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.tar draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.tar.gz draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.tar.bz2 draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.tar.xz draklive-install-e1453222ea331c0e16e9b861c00511ca27c83156.zip |
Use run_program::get_stdout to calculate installed size.
This allows us to respond to check-alive pings whilst waiting.
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | draklive-install | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,3 +1,5 @@ +- use run_program::get_stdout to calculate installed size, to + allow us to respond to check-alive pings whilst waiting - install callback routine to handle window events whilst waiting for sub-programs to terminate (mga#31105) diff --git a/draklive-install b/draklive-install index 3b8224c..6b9d786 100755 --- a/draklive-install +++ b/draklive-install @@ -307,7 +307,7 @@ sub get_total_size { state %total; return $total{$source} if $total{$source}; my $_wait = $in->wait_message('', N("Computing total size")); - $total{$source} = first(split(/\s+/, `du -sbx /run/mgalive/ovlsize 2>/dev/null`)); + $total{$source} = first(split(/\s+/, run_program::get_stdout('du', '2>', '/dev/null', '-sbx', '/run/mgalive/ovlsize'))); } sub sync_logs() { |