forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display multibuild flavors when asking for local project sources
There was a consistency gap between sources coming from local projects and sources coming from remote projects. Multibuild flavors were only shown for remote projects. Now the multibuild flavors are shown in both cases. Fixes openSUSE#16911
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
xml.directory(count: @packages.count) do | ||
@packages.map do |name, project| | ||
@packages.map do |package, project| | ||
if expand | ||
xml.entry(name: name, originproject: project) | ||
xml.entry(name: package, originproject: project) | ||
elsif package.multibuild? | ||
xml.entry(name: package.name) | ||
package.multibuild_flavors.each do |flavor| | ||
xml.entry(name: "#{package.name}:#{flavor}", originpackage: package.name) | ||
end | ||
else | ||
xml.entry(name: name) | ||
xml.entry(name: package) | ||
end | ||
end | ||
end |