On Thu, Oct 27, 2016 at 12:05:43PM +0200, Marcus Klein wrote:
On October 27, 2016 at 11:58 AM Michael Schroeder <mls@suse.de> wrote:
On Wed, Oct 26, 2016 at 04:50:36PM +0200, Marcus Klein wrote:
What do you mean by "higher path"? The list in the project dependencies? <repository name="DebianJessie"> <path project="UI-1.0.1" repository="DebianJessie"/> <path project="extension-1.0.0" repository="DebianJessie"/> <arch>x86_64</arch> </repository> We defined the path for version 1.0.1 of UI and base first. Is this correct?
I think you want to add <path project="base-1.0.1" repository="DebianJessie"/> right after the UI path.
To give you complete freedom over the repository setup, OBS only "expands" the last component of a path. So with the current setup you get: current_project UI-1.0.1 extension-1.0.0 base-1.0.0 (expanded from extension-1.0.0)
Note that the repos are strictly priorized, if a package is in multiple repos, only the first one is used and all the others are excluded. A versioned dependency does not change this, you will just get a "nothing provides" if you try to select an excluded package.
I found this documentation: https://en.opensuse.org/openSUSE:Build_Service_Tips_and_Tricks#Adding_multip...
(You can play tricks with aggregates if you need to workaround this for special cases.)
Our trick was to change the order of the path: <repository name="DebianJessie"> <path project="extension-1.0.0" repository="DebianJessie"/> <path project="UI-1.0.1" repository="DebianJessie"/> <arch>x86_64</arch> </repository>
With that you get the following expanded search path: current_project extension-1.0.0 UI-1.0.1 base-1.0.1 (expanded from UI-1.0.1) I.e. you no longer have base-1.0.0 in the path. But extension-1.0.0 now comes before UI-1.0.1, but that doesn't seem to cause problems for you.
This solved the problem. "package-a" is now considered with version 1.0.1 from base 1.0.1 project. I am not sure, why this happens/works now because it is totally contrary to what the documentation says.
No it's not ;) Btw, osc buildinfo contains the expanded path at the bottom, so you can use that to check if your setup is correct. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org