Skip to content

Commit

Permalink
Merge a383276 into a16badb
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Oct 21, 2021
2 parents a16badb + a383276 commit 98e1e1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/y2packager/product_spec_readers/libzypp.rb
Expand Up @@ -18,20 +18,20 @@
# find current contact information at www.suse.com.

require "y2packager/product"
require "y2packager/product_spec"
require "y2packager/libzypp_product_spec"

module Y2Packager
module ProductSpecReaders
# Reads product specifications from the control file
class Libzypp
def products
Y2Packager::Product.available_base_products.map do |prod|
Y2Packager::ProductSpec.new(
Y2Packager::LibzyppProductSpec.new(
name: prod.name,
display_name: prod.display_name,
version: prod.version,
arch: prod.arch&.to_sym, # TODO: use a symbol (?)
base: prod.category == :base,
base: true,
order: prod.order
)
end
Expand Down

0 comments on commit 98e1e1e

Please sign in to comment.