Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

post-build version checking finished, now need to hook to that info i…

…n A::B
  • Loading branch information...
commit b6ab6ca863bca46e23084e710298d147a64d91d1 1 parent 412c925
@jberger jberger authored
Showing with 6 additions and 8 deletions.
  1. +6 −8 lib/Alien/Base/ModuleBuild.pm
View
14 lib/Alien/Base/ModuleBuild.pm
@@ -281,17 +281,15 @@ sub ACTION_alien {
if (! $version and ! $pc_version) {
carp "Library looks like it installed, but no version was determined";
$self->config_data( version => 0 );
+ return
}
- if ( ! $version and $pc_version ) {
- $self->config_data( version => $pc_version );
- return;
+
+ if ( $version and $pc_version and versioncmp($version, $pc_version)) {
+ carp "Version information extracted from the file name and pkgconfig data disagree";
}
- if ( ! $pc_version and $version ) {
- $self->config_data( version => $version );
- return;
- }
- #TODO handle when both versions found, especiallly conflicting
+ $self->config_data( version => $pc_version || $version );
+ return;
}
#######################
Please sign in to comment.
Something went wrong with that request. Please try again.