Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Feb 27, 2018
1 parent 0b09929 commit a820665
Showing 1 changed file with 12 additions and 28 deletions.
40 changes: 12 additions & 28 deletions src/lib/installation/clients/inst_system_analysis.rb
Expand Up @@ -68,8 +68,6 @@ def main
# always return `back when came from the previous dialog
return :back if GetInstArgs.going_back

@found_controllers = true

@packager_initialized = false

Wizard.SetContents(_("Analyzing the Computer"), Empty(), "", false, false)
Expand Down Expand Up @@ -197,37 +195,23 @@ def ActionHDDProbe
end

if devicegraph.empty?
if @found_controllers || Arch.s390
if !(Mode.autoinst || Mode.autoupgrade)
# pop-up error report
Report.Error(
Builtins.sformat(
_(
"No hard disks were found for the installation.\n" \
"Please check your hardware!\n" \
"%1\n"
),
drivers_info
)
)
else
Report.Warning(
_(
"No hard disks were found for the installation.\n" \
"During an automatic installation, they might be detected later.\n" \
"(especially on S/390 or iSCSI systems)\n"
)
if Mode.auto
Report.Warning(
# TRANSLATORS: Error pop-up
_(
"No hard disks were found for the installation.\n" \
"During an automatic installation, they might be detected later.\n" \
"(especially on S/390 or iSCSI systems)\n"
)
end
)
else
# pop-up error report
Report.Error(
Builtins.sformat(
# TRANSLATORS: Error pop-up
_(
"No hard disks and no hard disk controllers were\n" \
"found for the installation.\n" \
"Check your hardware.\n" \
"%1\n"
"No hard disks were found for the installation.\n" \
"Please check your hardware!\n" \
"%1\n"
),
drivers_info
)
Expand Down

0 comments on commit a820665

Please sign in to comment.