aboutsummaryrefslogtreecommitdiff
path: root/utils/scancpan
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2018-10-10 08:46:10 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-10 09:05:45 +0200
commit8966be9d21a9569104e4988397c37fd4703a6854 (patch)
tree0cfb6860512048ba31dee971e592b13c9577f913 /utils/scancpan
parent228b6b680a377d761c4e4773d24b313e16bcd9f6 (diff)
downloadbuildroot-8966be9d21a9569104e4988397c37fd4703a6854.tar.gz
buildroot-8966be9d21a9569104e4988397c37fd4703a6854.tar.bz2
scancpan: trim the abstract
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'utils/scancpan')
-rwxr-xr-xutils/scancpan1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/scancpan b/utils/scancpan
index 0724049441..20ab27caa1 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -688,6 +688,7 @@ while (my ($distname, $dist) = each %dist) {
my $brname = brname( $fsname );
mkdir $dirname unless -d $dirname;
if ($need_target{$distname} && ($force || !-f $cfgname)) {
+ $dist->{abstract} =~ s|\s+$||;
my $abstract = wrap( q{}, qq{\t }, $dist->{abstract} );
my $homepage = $dist->{resources}->{homepage} || qq{https://metacpan.org/release/${distname}};
say qq{write ${cfgname}} unless $quiet;