80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
# File 'src/lib/installation/clients/installation_settings_finish.rb', line 80
def Write
if ProductControl.GetDisabledModules.nil?
Builtins.y2error("Wrong definition of DisabledModules")
return
end
if InstData.wizardsteps_disabled_modules.nil?
Builtins.y2error("Path to write disabled modules is not defined!")
return
end
Builtins.y2milestone(
"Writing disabled modules %1 into %2",
ProductControl.GetDisabledModules,
InstData.wizardsteps_disabled_modules
)
if SCR.Write(
path(".target.ycp"),
InstData.wizardsteps_disabled_modules,
ProductControl.GetDisabledModules
) != true
Builtins.y2error("Cannot write disabled modules")
end
Builtins.y2milestone(
"Writing disabled proposals %1 into %2",
ProductControl.GetDisabledProposals,
InstData.wizardsteps_disabled_proposals
)
if SCR.Write(
path(".target.ycp"),
InstData.wizardsteps_disabled_proposals,
ProductControl.GetDisabledProposals
) != true
Builtins.y2error("Cannot write disabled proposals")
end
Builtins.y2milestone(
"Writing disabled subproposals %1 into %2",
ProductControl.GetDisabledSubProposals,
InstData.wizardsteps_disabled_subproposals
)
if SCR.Write(
path(".target.ycp"),
InstData.wizardsteps_disabled_subproposals,
ProductControl.GetDisabledSubProposals
) != true
Builtins.y2error("Cannot write disabled subproposals")
end
Builtins.y2milestone("Anyway, successful")
nil
end
|