chiark / gitweb /
Provide $component_re
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 15 Apr 2015 17:03:45 +0000 (18:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 15 Apr 2015 17:03:45 +0000 (18:03 +0100)
Debian/Dgit.pm

index 268439a..c39ff72 100644 (file)
@@ -15,7 +15,7 @@ BEGIN {
     @ISA         = qw(Exporter);
     @EXPORT      = qw(debiantag server_branch server_ref
                       stat_exists git_for_each_ref
-                      $package_re $branchprefix);
+                      $package_re $component_re $branchprefix);
     %EXPORT_TAGS = ( policyflags => [qw(NOFFCHECK FRESHREPO)] );
     @EXPORT_OK   = @{ $EXPORT_TAGS{policyflags} };
 }
@@ -23,6 +23,7 @@ BEGIN {
 our @EXPORT_OK;
 
 our $package_re = '[0-9a-z][-+.0-9a-z]*';
+our $component_re = '[0-9a-zA-Z][-+.0-9a-zA-Z]*';
 our $branchprefix = 'dgit';
 
 # policy hook exit status bits