arvados-cli 0.1.20150529160203 → 0.1.20150529180401

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/crunch-job +17 -13
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf3f34e6509a6c3847bd333b357dc0289fe35ea3
4
- data.tar.gz: 3b0d0d5db9a1db742ebcff2d09f03745e010d733
3
+ metadata.gz: 8bec1865a7a48a02773857fae3cac6b17db24701
4
+ data.tar.gz: c5ca95ddaafb6fc953d77194b9ca94d8d321cf04
5
5
  SHA512:
6
- metadata.gz: c27558d79844645f535a5d406fe7a3db73a3b3e21e3453950b54065c392016c431a7d7bdf0b32fcf110d590b20d8372ba3b0bf7ac4e46ba73b6bdddc81f2de55
7
- data.tar.gz: 273174a7e34f5675a0d4c6b62cfc46b20a45435776af812e7852345296f75ff76621cbc515ecd3830027781f71ab8f1e0c608f2500f590249bb4bf5f7618fafc
6
+ metadata.gz: ad0f42ae02c9065f6e6d4d929a4e50ea3c2e996bffebe23e1b99cedf875974bfbb3ce1b9df659f5d46b71b0e90428b8c2774bc6cc646f2763b65ce498f021fda
7
+ data.tar.gz: 287993c105debeaad2fca946942da43d8f13d5d710f7248ab7e60033855dbd8db3bc632760c596c5fb67145b5f7f7bece62c05fe5f2dfae3411a2f6e24cfb92a
data/bin/crunch-job CHANGED
@@ -2083,19 +2083,23 @@ if (readlink ("$destdir.archive_hash") eq $archive_hash && -d $destdir) {
2083
2083
  unlink "$destdir.archive_hash";
2084
2084
  mkdir $destdir;
2085
2085
 
2086
- warn "Extracting archive: $archive_hash\n";
2087
- if (!open(TARX, "|-", "tar", "-xC", $destdir)) {
2088
- die "Error launching 'tar -xC $destdir': $!";
2089
- }
2090
- # If we send too much data to tar in one write (> 4-5 MiB), it stops, and we
2091
- # get SIGPIPE. We must feed it data incrementally.
2092
- my $tar_input;
2093
- while (read(DATA, $tar_input, 65536)) {
2094
- print TARX $tar_input;
2095
- }
2096
- if(!close(TARX)) {
2097
- die "'tar -xC $destdir' exited $?: $!";
2098
- }
2086
+ do {
2087
+ # Ignore SIGPIPE: we check retval of close() instead. See perlipc(1).
2088
+ local $SIG{PIPE} = "IGNORE";
2089
+ warn "Extracting archive: $archive_hash\n";
2090
+ if (!open(TARX, "|-", "tar", "-xC", $destdir)) {
2091
+ die "Error launching 'tar -xC $destdir': $!";
2092
+ }
2093
+ # If we send too much data to tar in one write (> 4-5 MiB), it stops, and we
2094
+ # get SIGPIPE. We must feed it data incrementally.
2095
+ my $tar_input;
2096
+ while (read(DATA, $tar_input, 65536)) {
2097
+ print TARX $tar_input;
2098
+ }
2099
+ if(!close(TARX)) {
2100
+ die "'tar -xC $destdir' exited $?: $!";
2101
+ }
2102
+ };
2099
2103
 
2100
2104
  mkdir $install_dir;
2101
2105
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20150529160203
4
+ version: 0.1.20150529180401
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
@@ -178,7 +178,7 @@ dependencies:
178
178
  - - "<"
179
179
  - !ruby/object:Gem::Version
180
180
  version: 1.0.0
181
- description: Arvados command line tools, git commit 1ec1d552c77e18e2912e400ae395ca00f4e51c3c
181
+ description: Arvados command line tools, git commit 9413eb733015601af699f2027d9a7a5bad3f3dea
182
182
  email: gem-dev@curoverse.com
183
183
  executables:
184
184
  - arv