Skip to content

Commit

Permalink
- use system_has_windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Sep 23, 2016
1 parent 29c8817 commit 3d22d2e
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions timezone/src/clients/timezone_proposal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# Purpose: Proposal function dispatcher - timezone.
#
# See also file proposal-API.txt for details.

module Yast
class TimezoneProposalClient < Client
def main
Expand Down Expand Up @@ -44,20 +45,10 @@ def main
)
Ops.set(@ret, "warning_level", :blocker)
else
# storage-ng
=begin
Yast.import "Storage"
if !Timezone.windows_partition &&
Ops.greater_than(
Builtins.size(
Storage.GetWinPrimPartitions(Storage.GetTargetMap)
),
0
)
if !Timezone.windows_partition && Timezone.system_has_windows?
Timezone.windows_partition = true
Builtins.y2milestone("windows partition found: assuming local time")
end
=end

# Fill return map
@ret = {
Expand Down

0 comments on commit 3d22d2e

Please sign in to comment.