Skip to content

Commit

Permalink
[backend] tweak last commit so that it matches the rest of the code
Browse files Browse the repository at this point in the history
I.e. do not mess with the "detect multibuild" regexp that is
used in other places as well. No functional changes.
  • Loading branch information
mlschroe committed Oct 21, 2016
1 parent e6e0695 commit f90dce9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/BSVerify.pm
Expand Up @@ -43,9 +43,10 @@ sub verify_projkind {
sub verify_packid {
my $packid = $_[0];
die("packid is empty\n") unless defined($packid) && $packid ne '';
if ($packid =~ /(?<!^_product)(?<!^_patchinfo)(?<!^_project)(?<!^_pattern):./) {
if ($packid =~ /(?<!^_product)(?<!^_patchinfo):./) {
die("packid '$packid' is illegal\n") unless $packid =~ /^([^:]+):([^:]+)$/s;
my ($p1, $p2) = ($1, $2);
die("packid '$packid' is illegal\n") if $p1 eq '_project' || $p1 eq '_pattern';
verify_packid($p1);
verify_packid($p2);
return;
Expand Down

0 comments on commit f90dce9

Please sign in to comment.