[SCM] Debian native package for Config::Model::Dpkg branch, master, updated. debian/2.031-6-g632dbd4

Salvatore Bonaccorso carnil at debian.org
Wed Dec 26 22:27:11 UTC 2012


The following commit has been merged in the master branch:
commit 4f41fa0e8b00affe7334619ff69670e1d801c8ae
Author: Salvatore Bonaccorso <carnil at debian.org>
Date:   Wed Dec 26 23:12:06 2012 +0100

    Correct regexp for allowed package names
    
    According to Debian policy "5.6.1 Source", package names must consist
    only of lower case letters (a-z), digits (0-9), plus (+) and minus (-)
    signs, and periods (.). They must be at least two characters long and
    must start with an alphanumeric character.
    
    Thanks: Stephen Kitt <steve at sk2.org>
    
    Closes: #696631

diff --git a/lib/Config/Model/Dpkg/Dependency.pm b/lib/Config/Model/Dpkg/Dependency.pm
index 18eb499..b7bd116 100644
--- a/lib/Config/Model/Dpkg/Dependency.pm
+++ b/lib/Config/Model/Dpkg/Dependency.pm
@@ -105,7 +105,7 @@ pkg_dep: pkg_name dep_version arch_restriction(?) {
 
 arch_restriction: '[' arch(s) ']'
 dep_version: '(' oper version ')' { $return = [ $item{oper}, $item{version} ] ;} 
-pkg_name: /[\w\-\.]+/ 
+pkg_name: /[a-z0-9][a-z0-9\+\-\.]+/
 oper: '<<' | '<=' | '=' | '>=' | '>>'
 version: variable | /[\w\.\-~:+]+/
 eofile: /^\Z/

-- 
Debian native package for Config::Model::Dpkg



More information about the Pkg-perl-cvs-commits mailing list