[opensuse-buildservice] package Build: keep the the Requires and Provides rules
Package: Build Hi, I'm working on the project OBS Light and I am currently developing a feature to build with fakeobs (http://en.opensuse.org/openSUSE:OBS_Light_Fakeobs). Everything works fine but I noticed a problem. With a package: -"A" which BuildRequires: Foo > 1.0. and in my repository two packages: - "B" Provides: Foo = 0.5 - "C" Provides: Foo = 1.5 expanddeps fails: have choice for Foo needed by "A": "B" "C" In the script "expanddeps", the function Build::addproviders is called (to check Provides rules on Build.pm Line 582). We need to keep the Requires and Provides rules (< <= = >= >) for the dependency. so in the script expanddeps (Line 173,190), we need to add: if (@s && $s[0] =~ /^[<=>]/){ push @re, "$s $s[0] $s[1]"; }else{ push @re, $s; } instead of: push @re, $s; Does this patch have consequences on other scripts? Could someone confirm this, please? submit request 130302 to openSUSE:Tools The Branch project on https://build.opensuse.org: https://build.opensuse.org/project/show?project=home%3Aronan22%3Abranches%3A... Ronan -- Ronan Le Martret Intel Open Source Technology Center
participants (1)
-
Ronan Le Martret (Intel OTC)