Skip to content

Commit

Permalink
Do not ask add-on product licences again after restarting YaST due se…
Browse files Browse the repository at this point in the history
…lf-update
  • Loading branch information
schubi2 committed Aug 10, 2016
1 parent 8115cec commit f1c7e9c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/ProductLicense.rb
Expand Up @@ -37,6 +37,7 @@ def main
Yast.import "String"
Yast.import "WorkflowManager"
Yast.import "Progress"
Yast.import "Installation"

# IMPORTANT: maintainer of yast2-installation is responsible for this module

Expand Down Expand Up @@ -1356,6 +1357,11 @@ def AskLicensesAgreementWithHeading(dirs, patterns, action, enable_back,
end

def AskAddOnLicenseAgreement(src_id)
# The user has to accept the Add-On license agreement
# BEFORE starting the YaST self update process.
# So, after restarting YaST he will not be asked again. (bnc#992608)
return true if Installation.restarting?

AskLicenseAgreement(
src_id,
"",
Expand Down

0 comments on commit f1c7e9c

Please sign in to comment.