Mercurial > gnulib
changeset 38971:a9609a9edc31
parser: disable modules in update mode
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Sat, 16 Sep 2017 22:33:12 +0300 |
parents | 3b199811dbb3 |
children | 900d7e3d6cae |
files | pygnulib/parser.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib/parser.py Sat Sep 16 22:31:18 2017 +0300 +++ b/pygnulib/parser.py Sat Sep 16 22:33:12 2017 +0300 @@ -168,7 +168,8 @@ if old_mode != 0: fmt = "argument {0}: not allowed with {1}" parser.error(fmt.format(new_option, old_option)) - setattr(namespace, "modules", list(value)) + if new_mode != CommandLine._UPDATE_: + setattr(namespace, "modules", list(value)) setattr(namespace, self.dest, new_mode) super().__call__(*args)