Permalink
Browse files

Set $CPANPLUS::Dist::Arch::PACKAGER to $ENV{PACKAGER} right away.

  • Loading branch information...
juster committed Aug 21, 2011
1 parent 67ec5f8 commit debc01dd2d2490fd11ad76265f8b787a70485afe
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/CPANPLUS/Dist/Arch.pm
@@ -240,6 +240,8 @@ READ_CONF:
close $mkpkgconf or error "close on makepkg.conf: $!";
}
+# Environment variable has second highest priority for PACKAGER.
+$PACKAGER = $ENV{PACKAGER} if $ENV{PACKAGER};
#-----------------------------------------------------------------------------
# PUBLIC CPANPLUS::Dist::Base Interface
@@ -769,7 +771,7 @@ sub get_pkgbuild
# Quote our package desc for bash.
$pkgvars{pkgdesc} =~ s/ ([\$\"\`]) /\\$1/gxms;
- my $templ_vars = { packager => $ENV{PACKAGER} || $PACKAGER,
+ my $templ_vars = { packager => $PACKAGER,
version => $VERSION,
%pkgvars,
distdir => $self->get_cpandistdir(),

0 comments on commit debc01d

Please sign in to comment.