summaryrefslogtreecommitdiffabout
path: root/lib/App/Glacier/Command/Get.pm
Side-by-side diff
Diffstat (limited to 'lib/App/Glacier/Command/Get.pm') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/App/Glacier/Command/Get.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/App/Glacier/Command/Get.pm b/lib/App/Glacier/Command/Get.pm
index 0d17659..82b32c8 100644
--- a/lib/App/Glacier/Command/Get.pm
+++ b/lib/App/Glacier/Command/Get.pm
@@ -162,2 +162,4 @@ sub run {
if (-f $cache_file) {
+ $self->debug(1, "$job: copying from $cache_file");
+ return if $self->dry_run;
unless (copy($cache_file, $localname)) {
@@ -195,2 +197,3 @@ sub download {
my ($self, $job, $localname) = @_;
+
my $archive_size = $job->get('ArchiveSizeInBytes');
@@ -216,5 +219,3 @@ sub _download_simple {
- eval { # FIXME: file_name might be absent
- $self->debug(1, "downloading", $job->file_name(1), "in single part");
- };
+ $self->debug(1, "$job: downloading in single part");
return if $self->dry_run;
@@ -258,4 +259,4 @@ sub _download_multipart {
- $self->debug(1,
- "downloading", $job->file_name(1), "to $localname in chunks of $part_size bytes, in $njobs jobs, with $job_parts parts per job");
+ $self->debug(1, "$job: downloading in chunks of $part_size bytes, in $njobs jobs, with $job_parts parts per job");
+
return if $self->dry_run;

Return to:

Send suggestions and report system problems to the System administrator.