From e8c083c6435d57228fb584740af09a90948c6275 Mon Sep 17 00:00:00 2001 From: Rohan McGovern Date: Fri, 29 Jun 2012 10:24:49 +1000 Subject: 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 Reviewed-by: Toby Tomkins --- scripts/qt/qt_update_submodules.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/qt') 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; -- cgit v1.2.3