[game-data-packager] 01/05: If yaml2json exits nonzero, do not continue processing

Simon McVittie smcv at debian.org
Wed Jul 15 09:22:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch master
in repository game-data-packager.

commit 1fa421623c3dd7802c25788bbf473e87058bfd07
Author: Simon McVittie <smcv at debian.org>
Date:   Wed Jul 15 10:13:09 2015 +0100

    If yaml2json exits nonzero, do not continue processing
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 4f9891e..8f870f6 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,8 @@ out/%: data/%
 	if [ -L $< ]; then cp -a $< $@ ; else install -m644 $< $@ ; fi
 
 out/%.json: data/%.yaml
-	python3 tools/yaml2json.py $< > $@ || rm -f $@
+	python3 tools/yaml2json.py $< > $@.tmp
+	mv $@.tmp $@
 
 out/bash_completion: $(in_yaml)
 	python3 tools/bash_completion.py > ./out/bash_completion

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git



More information about the Pkg-games-commits mailing list