Class: Yast::InstUpgradeUrlsClient
- Inherits:
-
Client
- Object
- Client
- Yast::InstUpgradeUrlsClient
- Includes:
- Logger
- Defined in:
- src/lib/installation/clients/inst_upgrade_urls.rb
Overview
Note:
For testing in an installed system use this command: YAST_TEST=1 yast2 inst_upgrade_urls
This client allows reusing the old repositories during system upgrade.
It will load the current repositories from the system, the changes will NOT be saved.
Instance Method Summary collapse
Instance Method Details
#main ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'src/lib/installation/clients/inst_upgrade_urls.rb', line 45 def main textdomain "installation" ret = GetInstArgs.going_back ? :back : :next if test? log.info("Test mode activated") init_pkg_mgr elsif !Stage.initial || !Mode.update log.info("Not in update mode or initial stage") return ret end # use ::Installation avoid collision with Yast::Installation @repo_manager = ::Installation::UpgradeRepoManager.create_from_old_repositories # nothing to show if repo_manager.repositories.empty? log.info("No old repository defined, skipping the dialog") return ret end ret = run_dialog log.info("Returning #{ret.inspect}") ret end |