summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerkin <e.altunbas@vyos.io>2021-11-24 20:14:43 +0300
committererkin <e.altunbas@vyos.io>2021-11-24 20:14:43 +0300
commit75f8832d057d7eeb4f8f97f0640bff08844330f1 (patch)
tree93288ba9836f8ef6287c0721add82c47ef8d1ec9
parentf7d48ceda6b45f8965d90916cb06e053cfaf3afe (diff)
downloadvyatta-op-75f8832d057d7eeb4f8f97f0640bff08844330f1.tar.gz
vyatta-op-75f8832d057d7eeb4f8f97f0640bff08844330f1.zip
T3950: Use friendly_download instead of regular download
-rwxr-xr-xscripts/vyatta-image-tools.pl7
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'};