瀏覽代碼

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>
Francois Perrad 10 年之前
父節點
當前提交
6e9d322a11
共有 3 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      package/perl-db-file/Config.in
  2. 1 1
      package/perl-db-file/perl-db-file.mk
  3. 1 0
      support/scripts/scancpan

+ 1 - 1
package/perl-db-file/Config.in

@@ -8,5 +8,5 @@ config BR2_PACKAGE_PERL_DB_FILE
 
 	  https://metacpan.org/release/DB_File
 
-comment "perl-db_file needs a toolchain w/ dynamic library"
+comment "perl-db-file needs a toolchain w/ dynamic library"
 	depends on BR2_STATIC_LIBS

+ 1 - 1
package/perl-db-file/perl-db-file.mk

@@ -1,6 +1,6 @@
 ################################################################################
 #
-# perl-db_file
+# perl-db-file
 #
 ################################################################################
 

+ 1 - 0
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;
 }