diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-15 07:35:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 07:35:43 +0100 |
commit | 9c801c15443afe2a103d2ff4b817c15a7c6508fe (patch) | |
tree | 09d6abe8025365f21aa0adb878dd3c2b13c0c074 /scripts/vyatta-image-tools.pl | |
parent | 28c670bf1911ec0f3fff5b6fff6cdbd91e98a318 (diff) | |
parent | 58e5b6cd712802d411ffc2be880bc55d9f610f4a (diff) | |
download | vyatta-op-9c801c15443afe2a103d2ff4b817c15a7c6508fe.tar.gz vyatta-op-9c801c15443afe2a103d2ff4b817c15a7c6508fe.zip |
Merge pull request #82 from erkin/current
remote: T5726: Replace the download procedure call
Diffstat (limited to 'scripts/vyatta-image-tools.pl')
-rwxr-xr-x | scripts/vyatta-image-tools.pl | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/vyatta-image-tools.pl b/scripts/vyatta-image-tools.pl index 4866a96..d654a22 100755 --- a/scripts/vyatta-image-tools.pl +++ b/scripts/vyatta-image-tools.pl @@ -126,7 +126,9 @@ sub url_copy { } } } - friendly_download($from, $to); + print "Downloading...\n"; + download($from, $to); + print "Download complete.\n"; } exit 0; } @@ -213,12 +215,7 @@ sub upload { sub download { my ($from, $to) = @_; - system("python3 -c 'from vyos.remote import download; download(\"$to\", \"$from\")'"); -} - -sub friendly_download { - my ($from, $to) = @_; - system("python3 -c 'from vyos.remote import friendly_download; friendly_download(\"$to\", \"$from\")'"); + system("python3 -c 'from vyos.remote import download; download(\"$to\", \"$from\", progressbar=True, check_space=True)'"); } sub y_or_n { |