Mailinglist Archive: opensuse-buildservice (260 mails)

< Previous Next >
Re: [opensuse-buildservice] osc 0.124 and obs 1.6 Compatibility
  • From: Marcus Rueckert <darix@xxxxxxxxx>
  • Date: Mon, 21 Dec 2009 16:25:51 +0100
  • Message-id: <20091221152551.GC17200@xxxxxxxxxxxx>
see attached patch

--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
Index: app/controllers/request_controller.rb
===================================================================
--- app/controllers/request_controller.rb (revision 8652)
+++ app/controllers/request_controller.rb (revision 8653)
@@ -37,11 +37,11 @@

# POST /request?cmd=create
def create_create
- if request.body.kind_of? StringIO or request.body.kind_of? FCGI::Stream
+# if request.body.kind_of? StringIO or request.body.kind_of? FCGI::Stream
or request.body.kind_of? Rack::RewindableInput
req = BsRequest.new(request.body.read)
- else
- req = BsRequest.new(request.body)
- end
+# else
+# req = BsRequest.new(request.body)
+# end

if req.has_element? 'submit' and req.has_attribute? 'type'
# old style, convert to new style on the fly
Index: app/controllers/source_controller.rb
===================================================================
--- app/controllers/source_controller.rb (revision 8652)
+++ app/controllers/source_controller.rb (revision 8653)
@@ -225,11 +225,11 @@
render :text => @attrs.render_attribute_axml(params), :content_type =>
'text/xml'
return
else
- if request.body.kind_of? StringIO or request.body.kind_of? FCGI::Stream
+# if request.body.kind_of? StringIO or request.body.kind_of? FCGI::Stream
req = BsRequest.new(request.body.read)
- else
- req = BsRequest.new(request.body)
- end
+# else
+# req = BsRequest.new(request.body)
+# end

# permission checking
if params[:attribute]
< Previous Next >
Follow Ups