Skip to content

Commit

Permalink
add more logging to debug (bnc#994127)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Aug 23, 2016
1 parent 8f3ecaf commit 19b4ab3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/lib/installation/proposal_runner.rb
Expand Up @@ -261,6 +261,7 @@ def handle_skip

def pre_continue_handling
@skip = if Yast::UI.WidgetExists(Id(:skip))
log.info "there is skip widget with value #{Yast::UI.QueryWidget(Id(:skip), :Value)}."
Yast::UI.QueryWidget(Id(:skip), :Value)
else
true
Expand Down Expand Up @@ -510,6 +511,8 @@ def submod_write_settings(submodule)
def write_settings
success = true

log.info "Writting settings for proposal"

@store.proposal_names do |submod|
submod_success = submod_write_settings(submod)
submod_success = true if submod_success.nil?
Expand Down
11 changes: 10 additions & 1 deletion src/lib/installation/proposal_store.rb
Expand Up @@ -100,11 +100,14 @@ def can_be_skipped?
return @can_skip unless @can_skip.nil?

@can_skip = if properties.key?("enable_skip")
log.info "properties skip available #{properties["enable_skip"].inspect}."
properties["enable_skip"] == "yes"
else
!["initial", "uml"].include?(@proposal_mode)
end

log.info "can skip set to #{@can_skip.inspect}."

@can_skip
end

Expand Down Expand Up @@ -390,11 +393,17 @@ def invalidate_description(client = nil)
end

def properties
@proposal_properties ||= Yast::ProductControl.getProposalProperties(
return @proposal_properties unless @proposal_properties.nil?

@proposal_properties = Yast::ProductControl.getProposalProperties(
Yast::Stage.stage,
Yast::Mode.mode,
@proposal_mode
)

log.info "Properties #{@proposal_properties.inspect}"

@proposal_properties
end

def make_proposal(client, force_reset: false, language_changed: false, callback: proc {})
Expand Down

0 comments on commit 19b4ab3

Please sign in to comment.