Catalogs: The scm <update> XML tag is now used.

The tag can be overridden on the command line with the --update and --no-update options.
This commit is contained in:
Edward d'Auvergne 2019-11-14 11:49:07 +01:00
parent 190d789a54
commit d22ff42e42

View File

@ -281,6 +281,12 @@ if args.no_update:
else: else:
cwd = os.getcwd() cwd = os.getcwd()
for scm in scm_list: for scm in scm_list:
# XML mandated skip, with command line override.
if not args.update:
skip = get_xml_text(scm.find('update'))
if skip == 'false':
continue
repo_type = get_xml_text(scm.find('type')) repo_type = get_xml_text(scm.find('type'))
repo_path = get_xml_text(scm.find('path')) repo_path = get_xml_text(scm.find('path'))
includes.append(repo_path) includes.append(repo_path)