From 6bb5b7190c3887949ec15e7e014efceaa47aab12 Mon Sep 17 00:00:00 2001 From: Pirmin Duss Date: Fri, 29 Jun 2018 12:38:52 +0200 Subject: [PATCH] depot: verify that runtime file is valid issue #2894 --- tool/depot/mk/extract_pkg_archive | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tool/depot/mk/extract_pkg_archive b/tool/depot/mk/extract_pkg_archive index 819246ce0..75a1b256c 100755 --- a/tool/depot/mk/extract_pkg_archive +++ b/tool/depot/mk/extract_pkg_archive @@ -72,9 +72,14 @@ ifneq ($(filter-out $(RECIPE_FILES),README),) " $(RECIPE_DIR)/README"; false endif +checked_runtime_valid: +ifeq ($(filter $(RECIPE_FILES),runtime),runtime) + $(VERBOSE)xmllint --noout $(addprefix $(RECIPE_DIR)/,runtime) +endif + .NOTPARALLEL: $(DEPOT_ARCHIVE_DIR)/$(TAG_FILE) -$(DEPOT_ARCHIVE_DIR)/$(TAG_FILE): checked_readme_exists +$(DEPOT_ARCHIVE_DIR)/$(TAG_FILE): checked_readme_exists checked_runtime_valid $(VERBOSE)cp $(addprefix $(RECIPE_DIR)/,$(RECIPE_FILES)) $(DEPOT_ARCHIVE_DIR)/ #