line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::AUR::Maintainer; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
21941
|
use warnings 'FATAL' => 'all'; |
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
97
|
|
4
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
60
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
10
|
use Carp qw(); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
32
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
2659
|
use WWW::AUR::RPC; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
347
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
#---CONSTRUCTOR--- |
11
|
|
|
|
|
|
|
sub new |
12
|
|
|
|
|
|
|
{ |
13
|
2
|
|
|
2
|
0
|
16
|
my $class = shift; |
14
|
|
|
|
|
|
|
|
15
|
2
|
50
|
|
|
|
13
|
my ($name, %params) = @_ |
16
|
|
|
|
|
|
|
or Carp::croak 'You must supply a maintainer name as argument'; |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
|
|
16
|
my $packages_ref = WWW::AUR::RPC::msearch( $name ); |
19
|
2
|
|
|
|
|
46
|
bless { name => $name, packages => $packages_ref, %params }, $class; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub name |
23
|
|
|
|
|
|
|
{ |
24
|
1
|
|
|
1
|
1
|
7
|
my ($self) = @_; |
25
|
1
|
|
|
|
|
10
|
return $self->{name}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#---PUBLIC METHOD--- |
29
|
|
|
|
|
|
|
sub packages |
30
|
|
|
|
|
|
|
{ |
31
|
1
|
|
|
1
|
1
|
860
|
my ($self) = @_; |
32
|
|
|
|
|
|
|
|
33
|
1
|
|
|
|
|
2
|
my $pkgs = $self->{packages}; |
34
|
|
|
|
|
|
|
|
35
|
1
|
|
|
|
|
826
|
require WWW::AUR::Package; |
36
|
1
|
|
|
|
|
6
|
return map { WWW::AUR::Package->new( $_->{name}, info => $_ ) } |
|
5
|
|
|
|
|
19
|
|
37
|
|
|
|
|
|
|
@$pkgs; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |