Skip to content

Instantly share code, notes, and snippets.

@niner
Created December 28, 2015 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niner/fb4979e3d5c90cd476e8 to your computer and use it in GitHub Desktop.
Save niner/fb4979e3d5c90cd476e8 to your computer and use it in GitHub Desktop.
diff --git a/src/core/CompUnit/Repository/Installation.pm b/src/core/CompUnit/Repository/Installation.pm
index 9877332..7c32bd2 100644
--- a/src/core/CompUnit/Repository/Installation.pm
+++ b/src/core/CompUnit/Repository/Installation.pm
@@ -304,7 +304,8 @@ sub MAIN(:$name is copy, :$auth, :$ver, *@, *%) {
method id() {
return $!id if $!id;
$!id = self.CompUnit::Repository::Locally::id();
- $!id = nqp::sha1($!id ~ self!dist-dir.dir)
+ my $dist-dir = $.prefix.child('dist');
+ $!id = nqp::sha1($!id ~ ($dist-dir.e ?? self!dist-dir.dir !! ''))
}
method short-id() { 'inst' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment