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 2020/06/10 15:01:38 UTC

[whimsy] branch master updated: Use library routines

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 a561497  Use library routines
a561497 is described below

commit a561497e14b4ba310014ac9f6fa16b598be97456
Author: Sebb <se...@apache.org>
AuthorDate: Wed Jun 10 16:01:28 2020 +0100

    Use library routines
---
 www/board/agenda/views/actions/todos.json.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/board/agenda/views/actions/todos.json.rb b/www/board/agenda/views/actions/todos.json.rb
index fad95be..a9fa719 100644
--- a/www/board/agenda/views/actions/todos.json.rb
+++ b/www/board/agenda/views/actions/todos.json.rb
@@ -142,7 +142,7 @@ if @establish and env.password
   establish = @establish.map {|resolution| resolution['name']}
 
   # create 'victims' file for tlpreq tool
-  `svn up #{TLPREQ}`
+  ASF::SVN.svn('update', TLPREQ)
   establish -= Dir[File.join(TLPREQ, 'victims-#{date}.*.txt')].
      map {|name| File.read(name.untaint).lines().map(&:chomp)}.flatten
   unless establish.empty?
@@ -152,7 +152,7 @@ if @establish and env.password
       filename = "victims-#{date}.#{count}.txt"
       contents = establish.join("\n") + "\n"
       File.write File.join(tmpdir, filename), contents
-      _.system "svn add #{tmpdir}/#{filename}"
+      ASF::SVN.svn_('add', File.join(tmpdir, filename), _)
     end
   end
 end