diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-06-12 10:20:36 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> | 2006-06-12 10:20:36 +0000 |
commit | 29492f75d462792795582f4ecbe8431989fbc38c (patch) | |
tree | 74ea58fb2bac24da556603278b8ba6e6848ed284 | |
parent | c81c9e6fd1ff91ef5cbe28fa8a1fd45df509a7aa (diff) | |
download | perl-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.
-rw-r--r-- | Makefile.PL | 3 |
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 |