Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make $*REPO.need(CompUnit::DependencySpecification.new(:short-name<li…
…b>)) do something
  • Loading branch information
niner committed Oct 21, 2015
1 parent 2e9dd10 commit b693ab1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/core/CompUnit/PrecompilationRepository.pm
@@ -0,0 +1,6 @@
role CompUnit::PrecompilationRepository {
}

BEGIN CompUnit::PrecompilationRepository::<None> := CompUnit::PrecompilationRepository;

# vim: ft=perl6 expandtab sw=4
2 changes: 0 additions & 2 deletions src/core/CompUnit/Repository.pm
@@ -1,5 +1,3 @@
role CompUnit::PrecompilationRepository { ... }

role CompUnit::Repository {
# Resolves a dependency specification to a concrete dependency. If the
# dependency was not already loaded, loads it. Returns a CompUnit
Expand Down
2 changes: 1 addition & 1 deletion src/core/CompUnitRepo/Locally.pm
Expand Up @@ -36,7 +36,7 @@ role CompUnitRepo::Locally {
CompUnit::PrecompilationRepository $precomp = self.precomp-repository())
returns CompUnit:D
{
self.candidates($spec.short-name, :auth($spec.auth-matcher), :ver($spec.version-matcher));
self.candidates($spec.short-name, :auth($spec.auth-matcher), :ver($spec.version-matcher))[0];
}

method loaded() returns Iterable {
Expand Down
1 change: 1 addition & 0 deletions tools/build/Makefile-JVM.in
Expand Up @@ -204,6 +204,7 @@ J_CORE_SOURCES = \
src/core/CompUnit/DependencySpecification.pm \
src/core/CompUnit/Handle.pm \
src/core/CompUnit/Loader.pm \
src/core/CompUnit/PrecompilationRepository.pm \
src/core/CompUnit/Repository.pm \
src/core/CompUnit.pm \
src/core/CompUnitRepo.pm \
Expand Down
1 change: 1 addition & 0 deletions tools/build/moar_core_sources
Expand Up @@ -153,6 +153,7 @@ src/core/Distribution.pm
src/core/CompUnit/DependencySpecification.pm
src/core/CompUnit/Handle.pm
src/core/CompUnit/Loader.pm
src/core/CompUnit/PrecompilationRepository.pm
src/core/CompUnit/Repository.pm
src/core/CompUnit.pm
src/core/CompUnitRepo.pm
Expand Down

0 comments on commit b693ab1

Please sign in to comment.