From 29492f75d462792795582f4ecbe8431989fbc38c Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 12 Jun 2006 10:20:36 +0000 Subject: Fix rpm version detection. Generate ChangeLog under C locale. --- Makefile.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile.PL') 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 -- cgit v1.2.1