]> git.pld-linux.org Git - projects/cleanbuild.git/commitdiff
findunusedbr: recent perl regex fix
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 17 Oct 2017 17:00:28 +0000 (20:00 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 17 Oct 2017 17:00:28 +0000 (20:00 +0300)
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^\s*(?:%{ <-- HERE .*)?BuildRequires:\s*(\S+)/ at cleanbuild/findunusedbr line 21.

findunusedbr

index 7a6359b01b34061cbfe4e2172c5314beed821d7e..03c172a8e794e05ad921e3a67acf21ffb7a2ed29 100755 (executable)
@@ -18,7 +18,7 @@ my $spec = shift @ARGV or die "Spec file not specified\n";
 my @rpms;
 open F_IN, "<", $spec or die "Cannot open '$spec'\n";
 while ( <F_IN> ) {
-       if ( /^\s*(?:%{.*)?BuildRequires:\s*(\S+)/i ) {
+       if ( /^\s*(?:%\{.*)?BuildRequires:\s*(\S+)/i ) {
                local $_ = $1;
                s/}$//;
                push @rpms, $_;
This page took 0.099712 seconds and 4 git commands to generate.