Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Nov 22, 2019
1 parent 8fe487e commit e6c9d75
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/modules/AutoinstSoftware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1023,8 +1023,8 @@ def ReadHelper

@all_xpatterns.each do |p|
if p.status == :installed &&
!patterns.include?(p.name)
patterns << p.name.empty? ? "no name" : p.name
!patterns.include?(p.name)
(patterns << p.name.empty?) ? "no name" : p.name
end
end
Pkg.TargetFinish
Expand Down Expand Up @@ -1081,14 +1081,13 @@ def ReadHelper
# "packages" -> list<string> user selected packages
# "remove-packages" -> list<string> packages to remove
def read_initial_stage
install_patterns = Y2Packager::Resolvable.find(kind: :pattern, user_visible: true).collect do |pattern|
# Do not take care about if the pattern has been selected by the user or the product
# definition, cause we need a base selection here for the future
# autoyast installation. (bnc#882886)
if pattern.status == :selected || pattern.status == :installed
pattern.name
install_patterns =
Y2Packager::Resolvable.find(kind: :pattern, user_visible: true).collect do |pattern|
# Do not take care about if the pattern has been selected by the user or the product
# definition, cause we need a base selection here for the future
# autoyast installation. (bnc#882886)
pattern.name if pattern.status == :selected || pattern.status == :installed
end
end

software = {}
software["packages"] = install_packages
Expand Down

0 comments on commit e6c9d75

Please sign in to comment.