[gnome-games] tools: Comment why we sort in update-gameinfo.sh
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] tools: Comment why we sort in update-gameinfo.sh
- Date: Mon, 2 Jul 2018 07:07:50 +0000 (UTC)
commit e2dce060abada54238e652d70873664adea7cb90
Author: Adrien Plazas <kekun plazas laposte net>
Date: Mon Jul 2 09:01:23 2018 +0200
tools: Comment why we sort in update-gameinfo.sh
tools/update-gameinfo.sh | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/tools/update-gameinfo.sh b/tools/update-gameinfo.sh
index cfde468..f7769a7 100755
--- a/tools/update-gameinfo.sh
+++ b/tools/update-gameinfo.sh
@@ -4,5 +4,8 @@ TMP_GAMEINFO_DOC='gameinfo/out/playstation.gameinfo.xml.in.tmp'
GAMEINFO_DOC='../plugins/playstation/data/playstation.gameinfo.xml.in'
gameinfo/psxdatacenter-gameinfo.py
+# Sort the existing document before merging the already sorted newly generated
+# one into it. This avoids inconsistencies in case the sorting function got
+# updated.
gameinfo/sort.py $GAMEINFO_DOC
gameinfo/merge.py $TMP_GAMEINFO_DOC $GAMEINFO_DOC $GAMEINFO_DOC
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]