diff options
author | Paul Wicking <paul.wicking@qt.io> | 2021-02-08 12:59:02 +0100 |
---|---|---|
committer | Paul Wicking <paul.wicking@qt.io> | 2021-02-09 06:43:18 +0100 |
commit | 414165e36614dc0f0267df280ea892e1914f1776 (patch) | |
tree | 8b6cf76d63c6fb361c509186c3f081b4f321cd64 /init-repository | |
parent | a36ec0c66b01368e06af7855f74735eb6c804505 (diff) |
Fix init-repository
Introducing additionalLibrary to .gitmodules
broke init-repository. Add the new state also
here.
Task-number: QTBUG-90669
Pick-to: 6.1
Change-Id: I3ac9960427ef2fd8fe39b508b69459f4fcf81ca7
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Diffstat (limited to 'init-repository')
-rwxr-xr-x | init-repository | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/init-repository b/init-repository index 2e0ddcde..63005fd2 100755 --- a/init-repository +++ b/init-repository @@ -294,7 +294,8 @@ use constant { STS_ESSENTIAL => 2, STS_ADDON => 3, STS_DEPRECATED => 4, - STS_OBSOLETE => 5 + STS_OBSOLETE => 5, + STS_ADDITIONAL => 6 }; sub git_clone_all_submodules @@ -332,6 +333,8 @@ sub git_clone_all_submodules $subinits{$1} = STS_DEPRECATED; } elsif ($3 eq "obsolete") { $subinits{$1} = STS_OBSOLETE; + } elsif ($3 eq "additionalLibrary") { + $subinits{$1} = STS_ADDITIONAL; } elsif ($3 eq "ignore") { delete $subinits{$1}; } else { @@ -351,6 +354,8 @@ sub git_clone_all_submodules @what = grep { ($subinits{$_} || 0) eq STS_ESSENTIAL } keys %subbases; } elsif ($mod eq "addon") { @what = grep { ($subinits{$_} || 0) eq STS_ADDON } keys %subbases; + } elsif ($mod eq "additionalLibrary") { + @what = grep { ($subinits{$_} || 0) eq STS_ADDITIONAL } keys %subbases; } elsif ($mod eq "preview") { @what = grep { ($subinits{$_} || 0) eq STS_PREVIEW } keys %subbases; } elsif ($mod eq "deprecated") { |