Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…lems
  • Loading branch information...
commit 7ff2ead3c7f676c2cf6c47e44b0ea45328bfe469 1 parent e2df61a
Joel Berger authored March 24, 2012
3  lib/Alien/Base.pm
@@ -94,6 +94,9 @@ sub pkgconfig {
94 94
   my $self = shift;
95 95
   my %all = %{ $self->config('pkgconfig') };
96 96
 
  97
+  croak "No Alien::Base::PkgConfig objects are stored!"
  98
+    unless keys %all;
  99
+
97 100
   return @all{@_} if @_;
98 101
 
99 102
   my $manual = delete $all{_manual};
3  lib/Alien/Base/ModuleBuild.pm
@@ -408,7 +408,8 @@ sub alien_load_pkgconfig {
408 408
     ($pc->{package}, $pc)
409 409
   } @$pc_files;
410 410
 
411  
-  my $manual_pc = $self->alien_generate_manual_pkgconfig($dir);
  411
+  my $manual_pc = $self->alien_generate_manual_pkgconfig($dir)
  412
+    or croak "Could not autogenerate pkgconfig information";
412 413
 
413 414
   $pc_objects{_manual} = $manual_pc;
414 415
 

0 notes on commit 7ff2ead

Please sign in to comment.
Something went wrong with that request. Please try again.