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 aebe913 Use library routines
aebe913 is described below
commit aebe9138b1b9c2601f5d2b4917a5a0f6803877c7
Author: Sebb <[email protected]>
AuthorDate: Thu Jun 11 14:21:03 2020 +0100
Use library routines
---
www/members/inactive.cgi | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/www/members/inactive.cgi b/www/members/inactive.cgi
index 9dd7f1e..624832c 100755
--- a/www/members/inactive.cgi
+++ b/www/members/inactive.cgi
@@ -105,25 +105,24 @@ _html do
# setup authentication
if $PASSWORD
- auth = [['--username', $USER, '--password', $PASSWORD]]
+ auth = {user: $USER, password: $PASSWORD}
else
- auth = [[]]
+ auth = {}
end
# apply and commit changes
Dir.mktmpdir do |dir|
_div_.transcript do
work = ASF::SVN.getInfoItem(latest,'url')
- _.system ['svn', 'checkout', auth, '--depth', 'empty', work, dir]
+ ASF::SVN.svn_('checkout', [work, dir], _, {args: ['--depth',
'empty']}.merge(auth))
json = File.join(dir, 'non-participants.json')
- _.system ['svn', 'update', auth, json]
+ ASF::SVN.svn_('update', json, _, auth)
tracker = JSON.parse(IO.read(json))
tracker[$USER]['status'] = @status
tracker[$USER]['status'] = @suggestions
IO.write(json, JSON.pretty_generate(tracker))
- _.system ['svn', 'diff', json], hilite: [/"status":/],
- class: {hilight: '_stdout _hilite'}
- _.system ['svn', 'commit', auth, json, '-m', @status]
+ ASF::SVN.svn_('diff', json, _, {verbose: true, sysopts: {hilite:
[/"status":/]}})
+ ASF::SVN.svn_('commit', json, _, {args: ['--message',
@status]}.merge(auth))
end
end
end