admin (git): distfiles/request-handler.pl - fix pattern for refs in git

draenog draenog at pld-linux.org
Thu Aug 2 22:13:47 CEST 2012


Author: draenog                      Date: Thu Aug  2 20:13:47 2012 GMT
Module: admin                         Tag: git
---- Log message:
- fix pattern for refs in git

---- Files affected:
admin/distfiles:
   request-handler.pl (1.28.2.2 -> 1.28.2.3) 

---- Diffs:

================================================================
Index: admin/distfiles/request-handler.pl
diff -u admin/distfiles/request-handler.pl:1.28.2.2 admin/distfiles/request-handler.pl:1.28.2.3
--- admin/distfiles/request-handler.pl:1.28.2.2	Sun Jul  8 06:37:25 2012
+++ admin/distfiles/request-handler.pl	Thu Aug  2 22:13:42 2012
@@ -51,10 +51,11 @@
 chomp $id;
 $id = rand if (!defined $id or $id eq "");
 
+my $ref_pattern='[0-9a-zA-Z][0-9#a-zA-Z._\@/+ :,-]*';
 while (<STDIN>) {
   chomp;
   /^X-Package: ([a-z0-9_.+-]+)/i and $spec = $1;
-  /^X-Branch: ([\/a-z0-9_-]+)/i and $branch = $1;
+  /^X-Branch: ($ref_pattern)/i and $branch = $1;
   /^X-Login: ([a-z0-9_.]+)/i and $from = $1;
   /^X-Flags: ([a-z0-9_ -]+)/i and $flags = $1;
 }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/admin/distfiles/request-handler.pl?r1=1.28.2.2&r2=1.28.2.3



More information about the pld-cvs-commit mailing list