diff options
author | erkin <e.altunbas@vyos.io> | 2021-11-24 20:14:43 +0300 |
---|---|---|
committer | erkin <e.altunbas@vyos.io> | 2021-11-24 20:14:43 +0300 |
commit | 75f8832d057d7eeb4f8f97f0640bff08844330f1 (patch) | |
tree | 93288ba9836f8ef6287c0721add82c47ef8d1ec9 | |
parent | f7d48ceda6b45f8965d90916cb06e053cfaf3afe (diff) | |
download | vyatta-op-75f8832d057d7eeb4f8f97f0640bff08844330f1.tar.gz vyatta-op-75f8832d057d7eeb4f8f97f0640bff08844330f1.zip |
T3950: Use friendly_download instead of regular download
-rwxr-xr-x | scripts/vyatta-image-tools.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/vyatta-image-tools.pl b/scripts/vyatta-image-tools.pl index bdee0c5..4866a96 100755 --- a/scripts/vyatta-image-tools.pl +++ b/scripts/vyatta-image-tools.pl @@ -126,7 +126,7 @@ sub url_copy { } } } - download($from, $to); + friendly_download($from, $to); } exit 0; } @@ -216,6 +216,11 @@ sub download { 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\")'"); +} + sub y_or_n { my ($msg) = @_; my $process_client = $ENV{'VYATTA_PROCESS_CLIENT'}; |