You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2018/09/10 23:34:21 UTC
[whimsy] branch master updated: Should now be OK to update the
index file
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new fb3cbd5 Should now be OK to update the index file
fb3cbd5 is described below
commit fb3cbd576ef158620813b489e8f6306c6cc6d469
Author: Sebb <se...@apache.org>
AuthorDate: Tue Sep 11 00:34:19 2018 +0100
Should now be OK to update the index file
---
tools/collate_minutes.rb | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/tools/collate_minutes.rb b/tools/collate_minutes.rb
index 14ab13d..549bc0d 100755
--- a/tools/collate_minutes.rb
+++ b/tools/collate_minutes.rb
@@ -89,7 +89,14 @@ if File.exist? INDEX_FILE
# TODO: consider storing actual update check time
if diff >= TIME_DIFF
Wunderbar.info "All up to date! (#{TIME_DIFF})"
- exit unless force
+ unless force
+ # Add stamp to index page
+ page = File.read(INDEX_FILE)
+ open(INDEX_FILE, 'w') { |file|
+ file.write page.sub(/(Last run: )\d{4}-\d\d-\d\d \d\d:\d\d(\. The data is extracted from a list of)/,"\\1#{STAMP}\\2")
+ }
+ exit
+ end
end
end