[Tools 1/3] winetest: Skip running build-index if no new report was found.
Francois Gouget
fgouget at codeweavers.com
Fri Feb 10 10:02:52 CST 2017
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>
---
winetest/winetest.cron | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/winetest/winetest.cron b/winetest/winetest.cron
index 42f52c8b..2fb177c0 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` &&
--
2.11.0
More information about the wine-patches
mailing list