Permalink
Browse files

added some warnings aimed at tracking down the missing pkgconfig prob…

…lems
  • Loading branch information...
1 parent e2df61a commit 7ff2ead3c7f676c2cf6c47e44b0ea45328bfe469 @jberger jberger committed Mar 25, 2012
Showing with 5 additions and 1 deletion.
  1. +3 −0 lib/Alien/Base.pm
  2. +2 −1 lib/Alien/Base/ModuleBuild.pm
View
@@ -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};
@@ -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;

0 comments on commit 7ff2ead

Please sign in to comment.