aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2021-04-26 11:13:13 -0500
committerGitHub <noreply@github.com>2021-04-26 17:13:13 +0100
commitcc5428488542429f0ffb6e4698bed2c02a4b1ea8 (patch)
tree5c42792bdc7d6b8b412276489465f5a31741cf8f /mesonbuild
parent39c751b94c5e12bb7a48a64941ccf225d93359ff (diff)
downloadmeson-cc5428488542429f0ffb6e4698bed2c02a4b1ea8.zip
meson-cc5428488542429f0ffb6e4698bed2c02a4b1ea8.tar.gz
meson-cc5428488542429f0ffb6e4698bed2c02a4b1ea8.tar.bz2
Fix issue where multiple dist files were not being produced for comma separated formats value
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/mdist.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py
index 36bad71..22c5b44 100644
--- a/mesonbuild/mdist.py
+++ b/mesonbuild/mdist.py
@@ -29,6 +29,7 @@ from mesonbuild import mlog, build
from .scripts.meson_exe import run_exe
archive_choices = ['gztar', 'xztar', 'zip']
+
archive_extension = {'gztar': '.tar.gz',
'xztar': '.tar.xz',
'zip': '.zip'}
@@ -36,8 +37,8 @@ archive_extension = {'gztar': '.tar.gz',
def add_arguments(parser):
parser.add_argument('-C', default='.', dest='wd',
help='directory to cd into before running')
- parser.add_argument('--formats', default='xztar', choices=archive_choices,
- help='Comma separated list of archive types to create.')
+ parser.add_argument('--formats', default='xztar',
+ help='Comma separated list of archive types to create. Supports xztar (default), gztar, and zip.')
parser.add_argument('--include-subprojects', action='store_true',
help='Include source code of subprojects that have been used for the build.')
parser.add_argument('--no-tests', action='store_true',