diff options
author | Moritz Lenz <moritz@faui2k3.org> | 2015-02-03 15:49:10 +0100 |
---|---|---|
committer | Moritz Lenz <moritz@faui2k3.org> | 2015-02-03 15:49:10 +0100 |
commit | 33346aad721728185a0989d1eb2832d9672ed155 (patch) | |
tree | 2060dd33f9a669575f760f24116622bb6eddde64 /tools | |
parent | 52105c5d07739bebe27b41c68340fdf0c038f55c (diff) |
Avoid warning in tools/build/panda-state.p6
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build/panda-state.p6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/panda-state.p6 b/tools/build/panda-state.p6 index 96716f9..9b986d9 100644 --- a/tools/build/panda-state.p6 +++ b/tools/build/panda-state.p6 @@ -21,7 +21,7 @@ Nil; # Walk the submodules and put its project information in panda's state file. my $fh = $state-file.IO.open(:w); for '.gitmodules'.IO.lines.grep(/^\turl/).map({ /$<url>=[\S+]$/; ~$<url> }) -> $url { - my $p = $projects.first({$_.<source-url> ~~ /^ "{%ex{$url} // $url}" '.git'? $/}); + my $p = $projects.first({defined .<source-url> && $_.<source-url> ~~ /^ "{%ex{$url} // $url}" '.git'? $/}); $p<repo-type> = 'git'; $p<source-url> = $url; $fh.say: $p<name> ~ ' installed ' ~ to-json($p).subst(/\n+/, '', :g); |