| line |
true |
false |
branch |
|
22
|
0 |
3 |
if exists $opts{'sloppy'} |
|
28
|
0 |
3 |
if exists $opts{'config_files'} |
|
30
|
0 |
3 |
if exists $opts{'depends'} |
|
32
|
0 |
3 |
if exists $opts{'description'} |
|
34
|
0 |
3 |
if exists $opts{'filename'} |
|
36
|
0 |
3 |
if exists $opts{'maintainer'} |
|
38
|
0 |
3 |
if exists $opts{'name'} |
|
40
|
0 |
3 |
if exists $opts{'preinst_script'} |
|
42
|
0 |
3 |
if exists $opts{'postinst_script'} |
|
44
|
0 |
3 |
if exists $opts{'prerm_script'} |
|
46
|
0 |
3 |
if exists $opts{'postrm_script'} |
|
50
|
0 |
3 |
exists $opts{'architecture'} ? : |
|
52
|
0 |
3 |
exists $opts{'priority'} ? : |
|
54
|
0 |
3 |
exists $opts{'section'} ? : |
|
56
|
0 |
3 |
exists $opts{'version'} ? : |
|
103
|
1 |
1 |
if defined $config_files and ref $config_files |
|
112
|
1 |
4 |
unless defined $depends |
|
114
|
2 |
2 |
if ($$self{'sloppy'} or $depends =~ /^[a-z0-9.+-]+(,[a-z0-9.+-]+)*$/) { } |
|
127
|
2 |
4 |
unless defined $description |
|
129
|
2 |
2 |
if ($$self{'sloppy'} or $description =~ /\S/) { } |
|
142
|
0 |
2 |
if (defined $filename) { } |
|
|
2 |
0 |
elsif (not defined $$self{'filename'}) { } |
|
145
|
1 |
1 |
if (defined $$self{'name'}) |
|
148
|
0 |
1 |
if defined $$self{'version'} and $$self{'version'} =~ /\S/ |
|
151
|
1 |
0 |
if defined $$self{'architecture'} and $$self{'architecture'} =~ /\S/ |
|
165
|
2 |
6 |
unless defined $maintainer |
|
167
|
3 |
3 |
if ($$self{'sloppy'} or $maintainer =~ /\@/) { } |
|
180
|
1 |
10 |
unless defined $name |
|
182
|
2 |
8 |
if ($$self{'sloppy'} or $name =~ /^[a-z0-9.+-]+$/) { } |
|
195
|
1 |
1 |
if defined $preinst_script |
|
203
|
1 |
1 |
if defined $postinst_script |
|
211
|
1 |
1 |
if defined $prerm_script |
|
219
|
1 |
1 |
if defined $postrm_script |
|
227
|
1 |
7 |
unless defined $architecture |
|
229
|
6 |
1 |
if ($$self{'sloppy'} or $architecture =~ /^arm|all$/) { } |
|
242
|
1 |
10 |
unless defined $priority |
|
244
|
9 |
1 |
if ($$self{'sloppy'} or $priority =~ /^required|standard|important|optional|extra$/) { } |
|
263
|
1 |
25 |
unless defined $section |
|
265
|
24 |
1 |
if ($$self{'sloppy'} or $section =~ /$regex/) { } |
|
278
|
1 |
6 |
unless defined $version |
|
280
|
2 |
4 |
if ($$self{'sloppy'} or $version =~ /^[a-zA-Z0-9.+]*$/ and $version =~ /\d/) { } |
|
|
3 |
1 |
elsif ($version =~ /^\s*$/) { } |
|
299
|
2 |
7 |
unless defined $$self{'name'} |
|
301
|
0 |
9 |
unless defined $$self{'architecture'} |
|
302
|
0 |
9 |
unless defined $$self{'architecture'} |
|
303
|
6 |
3 |
unless defined $$self{'maintainer'} |
|
304
|
0 |
9 |
unless defined $$self{'section'} |
|
306
|
7 |
2 |
unless defined $$self{'description'} |
|
323
|
0 |
0 |
unless defined $new_filename |
|
326
|
0 |
0 |
unless open ADDFILE, "<$filename" |
|
341
|
0 |
0 |
unless defined $opts and ref $opts and exists $$opts{'mode'} |
|
356
|
1 |
0 |
if defined $$self{'priority'} |
|
362
|
0 |
1 |
if defined $$self{'depends'} |
|
378
|
1 |
1 |
if $self->verify |
|
384
|
0 |
4 |
if defined $$self{$_} |
|
388
|
0 |
1 |
if defined $$self{'config_files'} and ref $$self{'config_files'} |
|
399
|
0 |
1 |
unless defined $tar_data |
|
405
|
0 |
1 |
unless defined $tar_data |
|
419
|
0 |
0 |
unless $filename and defined $data |
|
421
|
0 |
0 |
unless open IPKG, ">$filename" |