diff --git a/centos2anolis.py b/centos2anolis.py index ae7e3498aa2f56583bbb6b6d1325710d9e439515..f35b9c38e6774b23bc2fa5e0a86a206bf6c43249 100644 --- a/centos2anolis.py +++ b/centos2anolis.py @@ -523,7 +523,7 @@ def check_dnf_modules(): unknown_mods = [] if len(enabled_modules) > 0: for mod in enabled_modules: - if re.fullmatch('container-tools|llvm-toolset', mod): + if re.fullmatch('container-tools|llvm-toolset|virt', mod): subprocess.run('dnf module --disablerepo=* reset -y ' + mod, shell=True) if not re.fullmatch('container-tools|go-toolset|jmc|llvm-toolset|rust-toolset|virt', mod): unknown_mods.append(mod) @@ -743,6 +743,7 @@ def reset_yum_cache(): def do_migration(): try: + subprocess.check_call('yum update libdnf -y', shell=True) subprocess.check_call('yum -y distro-sync', shell=True) except: log_it(logging.ERROR, "Could not automatically sync with Anolis OS repositories.\n\ diff --git a/centos2anolis.spec b/centos2anolis.spec index c8bd56ee0bfac46f04c6969de67554c8cae2912a..aeb285be0e4c51695e877cc454f7a729a36bdf0e 100644 --- a/centos2anolis.spec +++ b/centos2anolis.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 Name: centos2anolis Version: 0.1 @@ -39,6 +39,9 @@ install -m 755 %{SOURCE0} %{buildroot}/%{_sbindir} %changelog +* Fri Mar 25 2022 mgb0110571 - 0.1-4 +- fix module virt + * Fri Feb 11 2022 mgb0110571 - 0.1-3 - Add mysql-server check - handle 3rd-part repository files and try using an internal web address