X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=blobdiff_plain;f=Debbugs%2FBug.pm;h=641881a8fcb849b7568b959a2c6a245ffb1d151d;hp=bff73c7aaaabfb1affd033836655b3023b75439d;hb=d076b44e22d1ade88885f04b59db5319597604e3;hpb=63ff49bfdec6dec00dc7e9304da1c993a367e595 diff --git a/Debbugs/Bug.pm b/Debbugs/Bug.pm index bff73c7..641881a 100644 --- a/Debbugs/Bug.pm +++ b/Debbugs/Bug.pm @@ -72,6 +72,31 @@ sub _build_status { return $status; } +has log => (is => 'bare', isa => 'Debbugs::Log', + lazy => 1, + builder => '_build_log', + handles => {_read_record => 'read_record', + log_records => 'read_all_records', + }, + ); + +sub _build_log { + my $self = shift; + return Debbugs::Log->new(bug_num => $self->id, + inner_file => 1, + ); +} + +has spam => (is => 'bare', isa => 'Debbugs::Log::Spam', + lazy => 1, + builder => '_build_spam', + handles => ['is_spam'], + ); +sub _build_spam { + my $self = shift; + return Debbugs::Log::Spam->new(bug_num => $self->id); +} + has 'package_collection' => (is => 'ro', isa => 'Debbugs::Collection::Package', builder => '_build_package_collection',