|
Lines 689-705
module Registration
Link Here
|
| 689 |
.select { |p| p.is_a?(Y2Packager::RepoProductSpec) } |
689 |
.select { |p| p.is_a?(Y2Packager::RepoProductSpec) } |
| 690 |
log.info("Found base products on the offline medium: #{products.pretty_inspect}") |
690 |
log.info("Found base products on the offline medium: #{products.pretty_inspect}") |
| 691 |
|
691 |
|
| 692 |
new_migration = products.any? do |p| |
692 |
# in SP6+ always use the new product mapping |
| 693 |
next false unless p.name == "SLES" || p.name == "SLE_HPC" |
693 |
new_migration = true |
| 694 |
|
|
|
| 695 |
version = p.version.split(".") |
| 696 |
major = version[0].to_i |
| 697 |
minor = version[1].to_i |
| 698 |
|
| 699 |
# SLE15-SP6 or newer |
| 700 |
major > 15 || (major == 15 && minor >= 6) |
| 701 |
end |
| 702 |
|
| 703 |
log.info "Using SP6+ product upgrade mapping: #{new_migration}" |
694 |
log.info "Using SP6+ product upgrade mapping: #{new_migration}" |
| 704 |
Y2Packager::ProductUpgrade.new_renames = new_migration |
695 |
Y2Packager::ProductUpgrade.new_renames = new_migration |
| 705 |
Yast::AddOnProduct.new_renames = new_migration |
696 |
Yast::AddOnProduct.new_renames = new_migration |