aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/wrap
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-05-06 11:06:02 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2022-10-11 15:54:59 -0400
commitaaabd6224f8fbba80840e598e67d4d16a19ae3ec (patch)
treef1ea7cb8989b53a23e0316deddcbb775d535c037 /mesonbuild/wrap
parentcd82804533d2b858564d960576f126c044849cb3 (diff)
downloadmeson-aaabd6224f8fbba80840e598e67d4d16a19ae3ec.zip
meson-aaabd6224f8fbba80840e598e67d4d16a19ae3ec.tar.gz
meson-aaabd6224f8fbba80840e598e67d4d16a19ae3ec.tar.bz2
Make `meson wrap update` command update all wraps in parallel
This moves the implementation into msubprojects because it has all the infrastructure to update wraps in parallel while keeping "meson wrap" UX.
Diffstat (limited to 'mesonbuild/wrap')
-rw-r--r--mesonbuild/wrap/wraptool.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/mesonbuild/wrap/wraptool.py b/mesonbuild/wrap/wraptool.py
index be6ceb7..bcf0e67 100644
--- a/mesonbuild/wrap/wraptool.py
+++ b/mesonbuild/wrap/wraptool.py
@@ -22,7 +22,7 @@ from .wrap import (open_wrapdburl, WrapException, get_releases, get_releases_dat
update_wrap_file, parse_patch_url)
from pathlib import Path
-from .. import mesonlib
+from .. import mesonlib, msubprojects
if T.TYPE_CHECKING:
import argparse
@@ -48,11 +48,8 @@ def add_arguments(parser: 'argparse.ArgumentParser') -> None:
p.add_argument('name')
p.set_defaults(wrap_func=install)
- p = subparsers.add_parser('update', help='update the project to its newest available release')
- p.add_argument('--allow-insecure', default=False, action='store_true',
- help='Allow insecure server connections.')
- p.add_argument('name')
- p.set_defaults(wrap_func=update)
+ p = msubprojects.add_wrap_update_parser(subparsers)
+ p.set_defaults(wrap_func=msubprojects.run)
p = subparsers.add_parser('info', help='show available versions of a project')
p.add_argument('--allow-insecure', default=False, action='store_true',