Skip to content

Commit

Permalink
Bugfix, and make more real-world proof
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeusz Sośnierz committed May 4, 2013
1 parent 0bbb63b commit 09fc84a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/panda
Expand Up @@ -66,4 +66,8 @@ multi MAIN ('search', $pattern) {
search-projects($panda, $pattern);
}

END {
rm_rf '.work';
}

# vim: ft=perl6
3 changes: 3 additions & 0 deletions lib/Panda.pm
Expand Up @@ -65,6 +65,9 @@ class Panda {
$notests, $isdep as Bool) {
my $dir = tmpdir();
self.announce('fetching', $bone);
unless $bone.metainfo<source-url> {
die X::Panda.new($bone.name, 'fetch', 'source-url meta info missing')
}
$.fetcher.fetch($bone.metainfo<source-url>, $dir);
self.announce('building', $bone);
$.builder.build($dir);
Expand Down
2 changes: 1 addition & 1 deletion lib/Panda/Common.pm
Expand Up @@ -32,7 +32,7 @@ sub withp6lib(&what) is export {
}

class X::Panda is Exception {
has $.module;
has $.module is rw;
has $.stage;
has $.description;

Expand Down

0 comments on commit 09fc84a

Please sign in to comment.