depot: verify that runtime file is valid

issue #2894
This commit is contained in:
Pirmin Duss 2018-06-29 12:38:52 +02:00 committed by Christian Helmuth
parent bac7ba6639
commit 6bb5b7190c

View File

@ -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)/
#