mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
scancpan: catch exception when MANIFEST is missing
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
2ded88b9cd
commit
c92612b4b5
@ -567,11 +567,17 @@ sub fetch {
|
|||||||
say qq{fetch ${name}} unless $quiet;
|
say qq{fetch ${name}} unless $quiet;
|
||||||
my $result = $mcpan->release( distribution => $name );
|
my $result = $mcpan->release( distribution => $name );
|
||||||
$dist{$name} = $result;
|
$dist{$name} = $result;
|
||||||
my $manifest = $mcpan->source( author => $result->{author},
|
eval {
|
||||||
release => $name . q{-} . $result->{version},
|
my $manifest = $mcpan->source( author => $result->{author},
|
||||||
path => 'MANIFEST' );
|
release => $name . q{-} . $result->{version},
|
||||||
$need_dlopen{$name} = is_xs( $manifest );
|
path => 'MANIFEST' );
|
||||||
$license_files{$name} = find_license_files( $manifest );
|
$need_dlopen{$name} = is_xs( $manifest );
|
||||||
|
$license_files{$name} = find_license_files( $manifest );
|
||||||
|
};
|
||||||
|
if ($@) {
|
||||||
|
warn $@;
|
||||||
|
$license_files{$name} = [];
|
||||||
|
}
|
||||||
my %build = ();
|
my %build = ();
|
||||||
my %runtime = ();
|
my %runtime = ();
|
||||||
my %optional = ();
|
my %optional = ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user