summaryrefslogtreecommitdiff
path: root/support/scripts/scancpan
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2015-07-23 18:47:16 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-23 22:36:18 +0200
commit6e9d322a111ba776f54d87fb523cd37d3cf793ef (patch)
tree2948fe329ec1f8e19394bafbad782b935e900712 /support/scripts/scancpan
parent8821b54f9389e09b57cc8118af468133e7c2b7a2 (diff)
scancpan: adjust package name
underscore is not allowed in BR package name. this problem was found with the Perl module DB_File which must give the BR package perl-db-file. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts/scancpan')
-rwxr-xr-xsupport/scripts/scancpan1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/scripts/scancpan b/support/scripts/scancpan
index d2e056309..c7180c8b4 100755
--- a/support/scripts/scancpan
+++ b/support/scripts/scancpan
@@ -607,6 +607,7 @@ say scalar keys %dist, q{ packages fetched.} unless $quiet;
# Buildroot package name: lowercase
sub fsname {
my $name = shift;
+ $name =~ s|_|-|g;
return q{perl-} . lc $name;
}