This is an automated email from the ASF dual-hosted git repository.
rubys 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 a93941a update logic for creation of victims file
a93941a is described below
commit a93941a95f5ca297391477d4a3411311ff4da54e
Author: Sam Ruby <[email protected]>
AuthorDate: Mon Jun 26 19:16:38 2017 -0400
update logic for creation of victims file
---
www/board/agenda/views/actions/todos.json.rb | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/www/board/agenda/views/actions/todos.json.rb
b/www/board/agenda/views/actions/todos.json.rb
index e7e3ce4..47593dd 100644
--- a/www/board/agenda/views/actions/todos.json.rb
+++ b/www/board/agenda/views/actions/todos.json.rb
@@ -108,22 +108,16 @@ if @establish and env.password
end
end
- # create 'victims' file for legacy tlpreq tool
- Dir.chdir TLPREQ do
- count = Dir["victims-#{date}.*.txt"].length
+ # create 'victims' file for tlpreq tool
+ count = Dir["#{TLPREQ}/victims-#{date}.*.txt"].length
+ message = "record #{date} approved TLP resolutions"
+ ASF:SVN.update TLPREQ, message, env, _ do |tmpdir|
filename = "victims-#{date}.#{count}.txt"
contents = establish.join("\n") + "\n"
- File.write filename, contents
- system "svn add #{filename}"
- rc = system ['svn', 'commit',
- ['--username', env.user, '--password', env.password],
- filename, '-m', 'record #{date} approved TLP resolutions']
- if rc == 0
- victims += establish
- else
- system "svn rm --force #{filename}"
- end
+ File.write "#{tmpdir}/#{filename}", contents
+ _.system "svn add #{tmpdir}/#{filename}"
end
+ victims += establish
minutes[:todos][:established] ||= []
minutes[:todos][:established] += establish
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].