From e7760312812c8bd0f1900ad149d266e2d1904a83 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 26 Aug 2016 16:46:40 +0200 Subject: minor optimization in stale file removal code don't bother opening headers.pri files, as they won't match anyway. Change-Id: I4d923266dabf1c9684fba4086f55bc24d76d23c5 Reviewed-by: Oswald Buddenhagen Reviewed-by: Lars Knoll --- bin/syncqt.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/syncqt.pl b/bin/syncqt.pl index 7410762985..43a033d8e1 100755 --- a/bin/syncqt.pl +++ b/bin/syncqt.pl @@ -934,6 +934,7 @@ foreach my $lib (@modules_to_sync) { foreach my $subdir (@subdirs) { if (opendir DIR, $subdir) { foreach my $t (sort { $b cmp $a } readdir(DIR)) { + next if ($t =~ /\.pri$/); my $file = "$subdir/$t"; if(-d $file) { push @subdirs, $file unless($t eq "." || $t eq ".."); -- cgit v1.2.3