Skip to content

Commit

Permalink
syncqt: Do not clean header directory before "-minimal" run
Browse files Browse the repository at this point in the history
It is possible that "syncqt -minimal" is run after a module's initial run
(for example if a host tool relies on a module, but cannot use it
directly and thus adds minimal_syncqt to its .pro file). In this case, the
old directory content should not be wiped.

Fixes: QTBUG-59319
Change-Id: I83767eff0ef74bcefae5efa9b18b7ab3724138e5
Reviewed-by: Oswald Buddenhagen <[email protected]>
  • Loading branch information
owolff committed Nov 22, 2018
1 parent eef9b4f commit a90694d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/syncqt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ ($$)
my %master_contents = ();

#remove the old files
if($remove_stale) {
if ($remove_stale && !$minimal) {
my %injections = ();
for my $p (keys %inject_headers) {
next unless ($p =~ /^\Q$dir\E(\/|$)/);
Expand Down

0 comments on commit a90694d

Please sign in to comment.