Subject: | [Patch] CPANPLUS-Dist-Mdv Generates an error due to broken changelog on Cooker |
I'm getting:
{{{{{{{{{
[ERROR] failed to create mandriva package for 'YAML-LibYAML':
error: %changelog entries must start with *
}}}}}}}}}
Due to a broken changelog. The patch fixes it. Please apply it and
release a new version on CPAN.
Oh! And the link to http://code.google.com/p/cpanplus-dist-mdv/ is
broken.
Regards,
-- Shlomi Fish
Subject: | CPANPLUS-Dist-Mdv-fix.patch |
--- lib/CPANPLUS/Dist/Mdv.pm.orig 2008-08-09 23:31:10.513950468 +0300
+++ lib/CPANPLUS/Dist/Mdv.pm 2008-08-09 23:31:19.241701687 +0300
@@ -23,6 +23,7 @@
use Pod::POM::View::Text;
use Readonly;
use Text::Wrap;
+use POSIX ();
our $VERSION = '0.3.6';
@@ -181,7 +182,7 @@
last if $line =~ /^__END__$/;
$line =~ s/DISTNAME/$distname/;
- $line =~ s/DISTVERS/$distvers/;
+ $line =~ s/DISTVERS/$distvers/g;
$line =~ s/DISTSUMMARY/$distsummary/;
$line =~ s/DISTEXTENSION/$distext/;
$line =~ s/DISTARCH/$distarch/;
@@ -190,6 +191,7 @@
$line =~ s/DISTDOC/@docfiles ? "%doc @docfiles" : ''/e;
$line =~ s/DISTTOPLEVEL/$disttoplevel/;
$line =~ s/DISTEXTRA/join( "\n", @{ $status->extra_files || [] })/e;
+ $line =~ s/DISTDATE/POSIX::strftime("%a %b %d %Y", localtime())/e;
print $specfh $line;
}
@@ -467,8 +469,8 @@
DISTEXTRA
%changelog
-initial mdv release, generated with cpan2dist
-
+* DISTDATE cpan2dist DISTVERS-1mdv
+- initial mdv release, generated with cpan2dist
__END__