I now resolved this with this patch: --- a/src/api/app/controllers/request_controller.rb +++ b/src/api/app/controllers/request_controller.rb @@ -418,7 +418,8 @@ class RequestController < ApplicationController end # for requests not yet accepted or accepted with OBS 2.0 and before - if tpkg + is_link = Suse::Backend.get("/source/#{CGI.escape(action.target.project)}/#{CGI.escape(action.target.package)}") + if tpkg or is_link path = "/source/%s/%s?oproject=%s&opackage=%s&cmd=diff&expand=1" % [CGI.escape(action.source.project), CGI.escape(action.source.package), CGI.escape(action.target.project), CGI.escape(action.target.package)] if action.source.data['rev'] Anas On 8 Feb 2011, at 08:15, Adrian Schröter wrote:
Am Montag, 7. Februar 2011, 21:22:15 schrieb Anas Nashif:
Hi,
When submitting a change against a package in a linked project, where the package does not exist physically, the diff does not work and only "New package" is returned. It would be nice to have the diff generated against the original package in the project link source instead if no package exists in the linked project, comments?
Makes sense. Detecting if it is a new package can be done in different ways.
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org