forked from lix-project/hydra
Doh
This commit is contained in:
parent
0d79f16fd5
commit
8913c682cf
|
@ -65,8 +65,8 @@ sub fetchInput {
|
|||
# Hm, if the Nix Perl bindings supported filters in
|
||||
# addToStore(), then we wouldn't need to make a copy here.
|
||||
my $tmpDir = File::Temp->newdir("hydra-svn-export.XXXXXX", CLEANUP => 1, TMPDIR => 1) or die;
|
||||
(system "svn", "export", $wcPath, "$tmpDir/svn-export", "--quiet") == 0 or die "svn export failed";
|
||||
$storePath = addToStore("$tmpDir/svn-export", 1, "sha256");
|
||||
(system "svn", "export", $wcPath, "$tmpDir/source", "--quiet") == 0 or die "svn export failed";
|
||||
$storePath = addToStore("$tmpDir/source", 1, "sha256");
|
||||
}
|
||||
|
||||
$sha256 = queryPathHash($storePath); $sha256 =~ s/sha256://;
|
||||
|
|
|
@ -99,7 +99,7 @@ inputDir=
|
|||
|
||||
[%+ IF input.type == "git" %]
|
||||
|
||||
inputDir="$tmpDir/[% input.name %]/git-export"
|
||||
inputDir="$tmpDir/[% input.name %]/source"
|
||||
|
||||
if ! [ -d "$inputDir" ]; then
|
||||
info "fetching Git input ‘[% input.name %]’ from ‘[% input.uri %]’ (commit [% input.revision %])..."
|
||||
|
@ -121,7 +121,7 @@ args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revisio
|
|||
|
||||
[%+ ELSIF input.type == "hg" %]
|
||||
|
||||
inputDir="$tmpDir/[% input.name %]/hg-archive"
|
||||
inputDir="$tmpDir/[% input.name %]/source"
|
||||
|
||||
if ! [ -d "$inputDir" ]; then
|
||||
info "fetching Mercurial input ‘[% input.name %]’ from ‘[% input.uri %]’ (commit [% input.revision %])..."
|
||||
|
@ -143,7 +143,7 @@ args+=(--arg '[% input.name %]' "{ outPath = $inputDir; rev = \"[% input.revisio
|
|||
|
||||
[%+ ELSIF input.type == "svn" %]
|
||||
|
||||
inputDir="$tmpDir/[% input.name %]/svn-export"
|
||||
inputDir="$tmpDir/[% input.name %]/source"
|
||||
|
||||
if ! [ -d "$inputDir" ]; then
|
||||
info "fetching Subversion input ‘[% input.name %]’ from ‘[% input.uri %]’ (commit [% input.revision %])..."
|
||||
|
|
|
@ -240,7 +240,7 @@ else
|
|||
tmpPath="$(mktemp -d "${TMPDIR:-/tmp}/git-checkout-tmp-XXXXXXXX")"
|
||||
trap "rm -rf \"$tmpPath\"" EXIT
|
||||
|
||||
tmpFile="$tmpPath/git-export"
|
||||
tmpFile="$tmpPath/source"
|
||||
mkdir "$tmpFile"
|
||||
|
||||
# Perform the checkout.
|
||||
|
|
|
@ -38,7 +38,7 @@ if test -z "$finalPath"; then
|
|||
tmpPath="$(mktemp -d "${TMPDIR:-/tmp}/hg-checkout-tmp-XXXXXXXX")"
|
||||
trap "rm -rf \"$tmpPath\"" EXIT
|
||||
|
||||
tmpArchive="$tmpPath/hg-archive"
|
||||
tmpArchive="$tmpPath/source"
|
||||
|
||||
# Perform the checkout.
|
||||
if [[ $url != /* ]]; then
|
||||
|
|
Loading…
Reference in a new issue