Class: Installation::UpdateRepositoriesFinder

Inherits:
Object
  • Object
show all
Includes:
Yast::I18n, Yast::Logger
Defined in:
src/lib/installation/update_repositories_finder.rb

Overview

This class find repositories to be used by the self-update feature.

Instance Method Summary collapse

Constructor Details

#initializeUpdateRepositoriesFinder

Constructor



41
42
43
# File 'src/lib/installation/update_repositories_finder.rb', line 41

def initialize
  textdomain "installation"
end

Instance Method Details

#updatesObject

Return the update source



46
47
48
49
50
51
52
53
54
55
56
# File 'src/lib/installation/update_repositories_finder.rb', line 46

def updates
  return @updates if @updates

  @updates = Array(custom_update) # Custom URL
  return @updates unless @updates.empty?

  @updates = updates_from_connect
  return @updates unless @updates.empty?

  @updates = Array(update_from_control)
end