From 6eae79c1fcc8ca1b8e380d25d172e95cad49afd6 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Wed, 21 Aug 2024 16:45:53 +0200 Subject: [PATCH] Adjust to pykickstart moving new partition and autopart commands to F41 --- pyanaconda/core/kickstart/commands.py | 6 +++--- .../modules/payloads/payload/test_dnf_validation.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyanaconda/core/kickstart/commands.py b/pyanaconda/core/kickstart/commands.py index da96f35c45b9..029ece1094f8 100644 --- a/pyanaconda/core/kickstart/commands.py +++ b/pyanaconda/core/kickstart/commands.py @@ -24,7 +24,7 @@ # Supported kickstart commands. from pykickstart.commands.authselect import F28_Authselect as Authselect -from pykickstart.commands.autopart import F38_AutoPart as AutoPart +from pykickstart.commands.autopart import F41_AutoPart as AutoPart from pykickstart.commands.bootloader import F39_Bootloader as Bootloader from pykickstart.commands.btrfs import F23_BTRFS as BTRFS from pykickstart.commands.cdrom import FC3_Cdrom as Cdrom @@ -54,7 +54,7 @@ from pykickstart.commands.nvdimm import F40_Nvdimm as Nvdimm from pykickstart.commands.ostreecontainer import F38_OSTreeContainer as OSTreeContainer from pykickstart.commands.ostreesetup import F38_OSTreeSetup as OSTreeSetup -from pykickstart.commands.partition import F34_Partition as Partition +from pykickstart.commands.partition import F41_Partition as Partition from pykickstart.commands.raid import F29_Raid as Raid from pykickstart.commands.realm import F19_Realm as Realm from pykickstart.commands.reboot import F23_Reboot as Reboot @@ -93,7 +93,7 @@ from pykickstart.commands.mount import F27_MountData as MountData from pykickstart.commands.network import F39_NetworkData as NetworkData from pykickstart.commands.nvdimm import F28_NvdimmData as NvdimmData -from pykickstart.commands.partition import F29_PartData as PartData +from pykickstart.commands.partition import F41_PartData as PartData from pykickstart.commands.raid import F29_RaidData as RaidData from pykickstart.commands.repo import F30_RepoData as RepoData from pykickstart.commands.snapshot import F26_SnapshotData as SnapshotData diff --git a/tests/unit_tests/pyanaconda_tests/modules/payloads/payload/test_dnf_validation.py b/tests/unit_tests/pyanaconda_tests/modules/payloads/payload/test_dnf_validation.py index 4d0de6235713..59f28ebf4b73 100644 --- a/tests/unit_tests/pyanaconda_tests/modules/payloads/payload/test_dnf_validation.py +++ b/tests/unit_tests/pyanaconda_tests/modules/payloads/payload/test_dnf_validation.py @@ -21,7 +21,7 @@ from pyanaconda.modules.common.structures.packages import PackagesSelectionData from pyanaconda.modules.payloads.payload.dnf.dnf_manager import InvalidSelectionError, \ - MissingSpecsError, BrokenSpecsError, DNFManager + MissingSpecsError, DNFManager from pyanaconda.modules.payloads.payload.dnf.validation import CheckPackagesSelectionTask, \ VerifyRepomdHashesTask