yast / yast-yast2

YaST module yast2
http://en.opensuse.org/Portal:YaST
GNU General Public License v2.0
54 stars 44 forks source link

Added Y2Packager::NewRepositorySetup class (bsc#1194453) #1239

Closed lslezak closed 2 years ago

lslezak commented 2 years ago

Technical Details

During upgrade YaST removes the old repository services (e.g. SLE12) from the system. Unfortunately when upgrading via RMT it returns the same name ("SUSE_Linux_Enterprise_Server_x86_64") also for the new service (SLE15), YaST did not expected that and removed the "old" service from the system which was actually the new one.

Obviously removing the SLES installation repository caused troubles later.

The problem does not happen with SCC as it uses unique names for each service (e.g. "SUSE_Linux_Enterprise_Server_12_SP3_x86_64" and "SUSE_Linux_Enterprise_Server_15_SP4_x86_64") so there is no conflict in the names.

Solution

Remember also the newly added services and when doing the old service cleanup skip the new services.

Testing

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.03%) to 41.632% when pulling f89b68bd826f9f1626116461f1981d301a61238c on bsc1194453 into 19a2879444e2dbbca34dacdf392bbfab4918cfb8 on master.

yast-bot commented 2 years ago

:heavy_check_mark: Public Jenkins job #356 successfully finished :heavy_check_mark: Created OBS submit request #949397