aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-06-12 10:20:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.com>2006-06-12 10:20:36 +0000
commit29492f75d462792795582f4ecbe8431989fbc38c (patch)
tree74ea58fb2bac24da556603278b8ba6e6848ed284 /Makefile.PL
parentc81c9e6fd1ff91ef5cbe28fa8a1fd45df509a7aa (diff)
downloadperl-URPM-29492f75d462792795582f4ecbe8431989fbc38c.tar
perl-URPM-29492f75d462792795582f4ecbe8431989fbc38c.tar.gz
perl-URPM-29492f75d462792795582f4ecbe8431989fbc38c.tar.bz2
perl-URPM-29492f75d462792795582f4ecbe8431989fbc38c.tar.xz
perl-URPM-29492f75d462792795582f4ecbe8431989fbc38c.zip
Fix rpm version detection. Generate ChangeLog under C locale.
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index c1e4689..454b147 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -17,6 +17,7 @@ unless (defined $rpm_path) {
defined $rpm_path or die "Can't find rpm on this system\n";
my $version = `LC_ALL=C $rpm_path --version`;
+chomp $version;
$version =~ s/RPM version //;
$version =~ /^(?:4\.[2-9]|[5-9]|\d{2})/
or die "Unable to build URPM with too old (or undetected) rpm version $version\n";
@@ -41,7 +42,7 @@ sub MY::postamble {
.PHONY: ChangeLog rpmdist srpm rpm
ChangeLog:
- svn2cl --accum --strip-prefix=soft/rpm/perl-URPM/trunk --authors ${commonusername}username.xml
+ LC_ALL=C svn2cl --accum --strip-prefix=soft/rpm/perl-URPM/trunk --authors ${commonusername}username.xml
rm -f *.bak
rpmdist: dist