Merge pull request #595 from kquick/darcs_cache_dir

Fix darcs input to use darcs-specific SCM cache dir.
This commit is contained in:
Eelco Dolstra 2018-09-10 10:51:08 +02:00 committed by GitHub
commit 0bc548ee2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ sub fetchInput {
my $storePath; my $storePath;
my $revCount; my $revCount;
my $cacheDir = getSCMCacheDir . "/git"; my $cacheDir = getSCMCacheDir . "/darcs";
mkpath($cacheDir); mkpath($cacheDir);
my $clonePath = $cacheDir . "/" . sha256_hex($uri); my $clonePath = $cacheDir . "/" . sha256_hex($uri);
$uri =~ s|^file://||; # darcs wants paths, not file:// uris $uri =~ s|^file://||; # darcs wants paths, not file:// uris