Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Aug 19, 2016
1 parent 8bd225c commit b10f232
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/lib/installation/clients/inst_update_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def main
finish_packager

if installer_updated
::FileUtils.touch(update_flag_file) # Indicates that the installer was updated.
# Indicates that the installer was updated.
::FileUtils.touch(update_flag_file)
Installation.restart!
else
:next
Expand Down Expand Up @@ -457,25 +458,26 @@ def import_registration_ayconfig
def initialize_packager
log.info "Initializing the package management..."

# add the initial installation repository, Packages.InitializeCatalogs
# cannot be used here is does too much (adds y2update.tgz, selects the
# product, selects the default patterns, looks for addon product files...)
# Add the initial installation repository.
# Unfortunately the Packages.InitializeCatalogs call cannot be used here
# as is does too much (adds y2update.tgz, selects the product, selects
# the default patterns, looks for the addon product files...).

# initialize package callbacks to show a progress while downloading the files
PackageCallbacks.InitPackageCallbacks

# set the language for the package manager (error messages)
# set the language for the package manager (mainly error messages)
Pkg.SetTextLocale(Language.language)

# load the GPG keys from inst-sys
# load the GPG keys (*.gpg files) from inst-sys
Packages.ImportGPGKeys

base_url = InstURL.installInf2Url("")
initial_repository = Pkg.SourceCreateBase(base_url, "")

until initial_repository
log.error "Adding the installation repository failed"
# ask the user to retry
# ask user to retry
base_url = Packages.UpdateSourceURL(base_url)

# aborted by user
Expand Down

0 comments on commit b10f232

Please sign in to comment.