arvados-cli 0.1.20140909115812 → 0.1.20140909151622

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/crunch-job +11 -11
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2752a1935c195116d03b53fc19feee153f5cc5d8
4
- data.tar.gz: 74e1c709e797b59f88ffa0615fb966c674f399c3
3
+ metadata.gz: c9615585720664982aa7d76d12874384c6905198
4
+ data.tar.gz: 72d2dacdb50723c8b9dd01eeb907eb03533247b0
5
5
  SHA512:
6
- metadata.gz: b8bfa9fa47902cadc08cfee78a9ba89a67352537bf8d61e4095ec54fde326ff7f3e67f9db9fdfec9443172f0e4fa85fc4aa9a22f3398ca7f690f34c22281956f
7
- data.tar.gz: 62bf369b7fa6b4fc156fe90a80f4d966d54c75386a72cadf95ebafbb1e0424c3315df6c7927b7eefe6e134f6f525770cb229670bdb2786affcd2b773b7ce6023
6
+ metadata.gz: 21180f0df8bdeabb95ca2a17e9c17c45c15fdf3c55f5ac34074d98e4c9ec63371a3f9586540a2c4a88b10c7acb8b55269d2b188ea19a3fd2b339e6773e8b5036
7
+ data.tar.gz: b8b1d3578a084db315aabc4a5a4dbf10eb8561f5bf9dbefe3f3f79b6630c9a95eef39bca353b1c03343f874a879d82eb92bc2becc6f0e19615abc174b978e555
data/bin/crunch-job CHANGED
@@ -447,9 +447,10 @@ else
447
447
  if ($treeish =~ m{^\d{1,4}$}) {
448
448
  my $gitlog = `git --git-dir=\Q$repo\E log --pretty="format:%H" --grep="git-svn-id:.*\@"\Q$treeish\E" " master`;
449
449
  chomp $gitlog;
450
- if ($gitlog =~ /^[a-f0-9]{40}$/) {
450
+ Log(undef, "git Subversion search exited $?");
451
+ if (($? == 0) && ($gitlog =~ /^[a-f0-9]{40}$/)) {
451
452
  $commit = $gitlog;
452
- Log (undef, "Using commit $commit for script_version $treeish");
453
+ Log(undef, "Using commit $commit for Subversion revision $treeish");
453
454
  }
454
455
  }
455
456
 
@@ -458,21 +459,19 @@ else
458
459
  if (!defined $commit) {
459
460
  my $found = `git --git-dir=\Q$repo\E rev-list -1 ''\Q$treeish\E`;
460
461
  chomp $found;
461
- if ($found =~ /^[0-9a-f]{40}$/s) {
462
+ Log(undef, "git rev-list exited $? with result '$found'");
463
+ if (($? == 0) && ($found =~ /^[0-9a-f]{40}$/s)) {
462
464
  $commit = $found;
465
+ Log(undef, "Using commit $commit for tree-ish $treeish");
463
466
  if ($commit ne $treeish) {
464
467
  # Make sure we record the real commit id in the database,
465
468
  # frozentokey, logs, etc. -- instead of an abbreviation or a
466
469
  # branch name which can become ambiguous or point to a
467
470
  # different commit in the future.
468
- $ENV{"CRUNCH_SRC_COMMIT"} = $commit;
469
- Log (undef, "Using commit $commit for tree-ish $treeish");
470
- if ($commit ne $treeish) {
471
- $Job->{'script_version'} = $commit;
472
- !$job_has_uuid or
473
- $Job->update_attributes('script_version' => $commit) or
474
- croak("Error while updating job");
475
- }
471
+ $Job->{'script_version'} = $commit;
472
+ !$job_has_uuid or
473
+ $Job->update_attributes('script_version' => $commit) or
474
+ croak("Error while updating job");
476
475
  }
477
476
  }
478
477
  }
@@ -482,6 +481,7 @@ else
482
481
  @execargs = ("sh", "-c",
483
482
  "mkdir -p $ENV{CRUNCH_INSTALL} && cd $ENV{CRUNCH_TMP} && perl -");
484
483
  $git_archive = `git --git-dir=\Q$repo\E archive ''\Q$commit\E`;
484
+ croak("git archive failed: exit " . ($? >> 8)) if ($? != 0);
485
485
  }
486
486
  else {
487
487
  croak ("could not figure out commit id for $treeish");
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.20140909115812
4
+ version: 0.1.20140909151622
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvados Authors
@@ -166,7 +166,7 @@ dependencies:
166
166
  - - "<"
167
167
  - !ruby/object:Gem::Version
168
168
  version: 1.0.0
169
- description: This is the Arvados SDK CLI gem, git revision f467b469109e27bc18635c8952892e4c23fabd60
169
+ description: This is the Arvados SDK CLI gem, git revision b0440160e64caecbff160a26f62301dd15d84c7f
170
170
  email: gem-dev@curoverse.com
171
171
  executables:
172
172
  - arv