arvados-cli 0.1.20150121183928 → 0.1.20150127170053

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 +9 -4
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2943fea5fd2753f9336bb8c860c159f97d184718
4
- data.tar.gz: 1887ce217972e9e91cdce8e0e44884b99fd50065
3
+ metadata.gz: 58eebb77bb4d8c203b0528d785b961048eb114cc
4
+ data.tar.gz: b79ee9764ad50d332aed045a17f6a5699153e4f9
5
5
  SHA512:
6
- metadata.gz: a4e77cf418857b91a0548fd4a913ca9cac4f46c21e9f0ce5ced020ac546d046ca116d924d7234f20a21e8f5e832dea7dded6434b686994bebd10d1d0060903a5
7
- data.tar.gz: d60b601e81956409d9a145d3904cec7bfd6b1cc2c9813a05b7502127476a2f5272e96ad2babcbb2eca8e8ec80c87e27589069876082e658fc2ebd5a5d8c2df59
6
+ metadata.gz: fe19d4df0b0903fb1b0b1882606992c1eb31748b234bb770a8846ea17064bc8108d87b2ec04a8da1dd11512dafd51eb5c70d35a68150b45879eec63508e1125c
7
+ data.tar.gz: fcf8e177ee7dbd337a9beec008538ad02bfc91eac734549bf0f4f96d2d08c4d711e684930daf12eebb3c16f5dd752eb046346e88d3ab469afd8a960f7e37271b
data/bin/crunch-job CHANGED
@@ -1907,10 +1907,15 @@ if (readlink ("$destdir.commit") eq $commit && -d $destdir) {
1907
1907
 
1908
1908
  unlink "$destdir.commit";
1909
1909
  mkdir $destdir;
1910
- open TARX, "|-", "tar", "-xC", $destdir;
1911
- {
1912
- local $/ = undef;
1913
- print TARX <DATA>;
1910
+
1911
+ if (!open(TARX, "|-", "tar", "-xC", $destdir)) {
1912
+ die "Error launching 'tar -xC $destdir': $!";
1913
+ }
1914
+ # If we send too much data to tar in one write (> 4-5 MiB), it stops, and we
1915
+ # get SIGPIPE. We must feed it data incrementally.
1916
+ my $tar_input;
1917
+ while (read(DATA, $tar_input, 65536)) {
1918
+ print TARX $tar_input;
1914
1919
  }
1915
1920
  if(!close(TARX)) {
1916
1921
  die "'tar -xC $destdir' exited $?: $!";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvados-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20150121183928
4
+ version: 0.1.20150127170053
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-21 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: arvados
@@ -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 ef969ca8dabe571a9866a7b3b7c39098785022fa
181
+ description: Arvados command line tools, git commit ef2d368867bfae2ca702184c57a8cd873f1c4e43
182
182
  email: gem-dev@curoverse.com
183
183
  executables:
184
184
  - arv