Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Commit

Permalink
added some warnings aimed at tracking down the missing pkgconfig prob…
Browse files Browse the repository at this point in the history
…lems
  • Loading branch information
jberger committed Mar 25, 2012
1 parent e2df61a commit 7ff2ead
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Alien/Base.pm
Expand Up @@ -94,6 +94,9 @@ sub pkgconfig {
my $self = shift;
my %all = %{ $self->config('pkgconfig') };

croak "No Alien::Base::PkgConfig objects are stored!"
unless keys %all;

return @all{@_} if @_;

my $manual = delete $all{_manual};
Expand Down
3 changes: 2 additions & 1 deletion lib/Alien/Base/ModuleBuild.pm
Expand Up @@ -408,7 +408,8 @@ sub alien_load_pkgconfig {
($pc->{package}, $pc)
} @$pc_files;

my $manual_pc = $self->alien_generate_manual_pkgconfig($dir);
my $manual_pc = $self->alien_generate_manual_pkgconfig($dir)
or croak "Could not autogenerate pkgconfig information";

$pc_objects{_manual} = $manual_pc;

Expand Down

0 comments on commit 7ff2ead

Please sign in to comment.