Francois Gouget : winetest: Skip running build-index if no new report was found.

Alexandre Julliard julliard at winehq.org
Mon Feb 13 15:17:09 CST 2017


Module: tools
Branch: master
Commit: d479ebd4a58ab7e0ea4a6be88d9342b1d4f7c345
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=d479ebd4a58ab7e0ea4a6be88d9342b1d4f7c345

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Fri Feb 10 17:02:52 2017 +0100

winetest: Skip running build-index if no new report was found.

While build-index is reasonably fast, running it regenerates the main
index, causing it to be redownloaded even if nothing changed.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 winetest/winetest.cron | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/winetest/winetest.cron b/winetest/winetest.cron
index 42f52c8..2fb177c 100755
--- a/winetest/winetest.cron
+++ b/winetest/winetest.cron
@@ -28,8 +28,9 @@ if [ ! -f $lock ]; then
     touch $lock
     cd $workdir
     while $tools/dissect; [ $? -eq 0 -o $? -eq 1 ]; do true; done
-    while $tools/gather; do true; done
-    $tools/build-index
+    updated=0
+    while $tools/gather; do updated=1; done
+    [ $updated -eq 1 ] && $tools/build-index
 
     # archive old results
     (cd old-data && dir=`find . -maxdepth 1 -mtime +$expire -type d -print -quit` &&




More information about the wine-cvs mailing list