Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] <rest-service> master : Explicitly specify "string" in BSV parameters.
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Tue, 7 Jul 2009 13:02:02 +0200
  • Message-id: <E1MO8S5-0007f0-VC@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit cd236c85c9e292590e8f56b882ce07ec94034a9c
Author: Martin Vidner <mvidner@xxxxxxx>
Date: Tue Jul 7 13:02:02 2009 +0200

Explicitly specify "string" in BSV parameters.

"" used to mean "string" but that was broken in yast2-core-2.18.5.
---
webservice/lib/scr.rb | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/webservice/lib/scr.rb b/webservice/lib/scr.rb
index 0ffa61e..1c7e969 100644
--- a/webservice/lib/scr.rb
+++ b/webservice/lib/scr.rb
@@ -24,15 +24,15 @@ class Scr
def read (path, arg = "")

ret = @scr.Read([false, "path", ["s",path] ],
- [false, (arg.empty? ? "" : "string"), ["s",arg] ],
- [false, "", ["s",""] ])
+ [false, "string", ["s",arg] ],
+ [false, "string", ["s",""] ])
return ret[0][2]
end

def write (path, value, arg = "")
@scr.Write([false, "path", ["s",path] ],
- [false, "", ["s",value] ],
- [false, "", ["s",arg] ])
+ [false, "string", ["s",value] ],
+ [false, "string", ["s",arg] ])
end

def execute (arguments, environment=[] )
@@ -55,8 +55,8 @@ class Scr
command += " </dev/null"

ret = @scr.Execute([false, "path", ["s",".target.bash_output"] ],
- [false, "", ["s",command] ],
- [false, "", ["s",""] ])
+ [false, "string", ["s",command] ],
+ [false, "string", ["s",""] ])
resmap = ret[0][2]
exit = resmap["exit"][2]
Rails.logger.error " SCRExecute (#{command}) => #{exit}"
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages