summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2022-11-26 21:56:25 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2022-11-26 21:56:25 +0000
commite1453222ea331c0e16e9b861c00511ca27c83156 (patch)
tree18515b1f440cdf7f2bb922d8833c569ba46d020a
parent02e5a6a3bb6cdeb5f16f2dd3a3cb6353b06aaaa8 (diff)
downloaddraklive-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--NEWS2
-rwxr-xr-xdraklive-install2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5f0c794..8f90141 100644
--- a/NEWS
+++ b/NEWS
@@ -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() {