diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2012-06-29 10:24:49 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-29 02:45:38 +0200 |
commit | e8c083c6435d57228fb584740af09a90948c6275 (patch) | |
tree | 60db2a4098453caa0484c81421457ce297bd3a79 /scripts/qt | |
parent | 85331b615557c0157a06f93129d2fee1f140eda7 (diff) |
qt_update_submodules: make it possible to update a module subset
Make it so that we can pass extra arguments to init-repository. The
main reason for this is to provide some workaround when a module, for
whatever reason, can't be fetched (qtwebkit).
Change-Id: I6738bc65c337ef48d74450606104cb2231b1effd
Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Diffstat (limited to 'scripts/qt')
-rwxr-xr-x | scripts/qt/qt_update_submodules.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/qt/qt_update_submodules.pl b/scripts/qt/qt_update_submodules.pl index e518904a..e8942a88 100755 --- a/scripts/qt/qt_update_submodules.pl +++ b/scripts/qt/qt_update_submodules.pl @@ -73,6 +73,9 @@ Readonly my @PROPERTIES => ( . q{is set)}, q{qt.git.ref} => q{the ref to push to (only used if qt.git.push is set)}, + + q{qt.init-repository.args} => q{additional arguments for init-repository; e.g., use } + . q{-module-subset argument to only update a subset of modules}, ); # Map from submodule to the ref which should be tracked. @@ -112,6 +115,7 @@ sub read_and_store_configuration 'qt.git.push.dry-run' => 0, 'qt.git.url' => 'ssh://qt_submodule_update_bot@codereview.qt-project.org:29418/qt/qt5', 'qt.git.ref' => 'refs/for/master', + 'qt.init-repository.args' => q{}, ); return; @@ -138,6 +142,7 @@ sub run_init_repository my $base_dir = $self->{ 'base.dir' }; my $location = $self->{ 'location' }; + my $args = $self->{ 'qt.init-repository.args' }; chdir $base_dir; @@ -149,6 +154,8 @@ sub run_init_repository push @init_repository_arguments, '-nokia-developer'; } + push @init_repository_arguments, (split /\s+/, $args); + $self->exe( 'perl', './init-repository', @init_repository_arguments ); return; |