Mailinglist Archive: opensuse-buildservice (206 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] request diff in a linked project
- From: Adrian Schröter <adrian@xxxxxxx>
- Date: Fri, 11 Feb 2011 15:23:57 +0100
- Message-id: <20110211142357.CDB223C539A9@imap.suse.de>
Am Freitag, 11. Februar 2011, 13:53:33 schrieb Anas Nashif:
I have pushed a different version to git master, making a difference in the
message if a package
exists via project link + adding the diff.
Hope that is okay with you.
adrian
Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
Note that I am not happy about this yet, but it serves as a quick fix, since
we depend on it :)
I have pushed a different version to git master, making a difference in the
message if a package
exists via project link + adding the diff.
Hope that is okay with you.
adrian
AnasSuse::Backend.get("/source/#{CGI.escape(action.target.project)}/#{CGI.escape(action.target.package)}")
On 11 Feb 2011, at 13:51, Anas Nashif wrote:
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 =
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),
--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.
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |