diff --git a/configs/rules.toml b/configs/rules.toml index 35cb5f90..f0dc380d 100644 --- a/configs/rules.toml +++ b/configs/rules.toml @@ -3,7 +3,7 @@ # /etc/slpkg/rules.toml # Date: 23/05/2023, Version: 4.8.6 -[UPDATES] +[UPGRADE] # If the installed package version pattern has a different matching # than the repository version for some special rules like nvidia-kernel, # please add the package in this list below. diff --git a/slpkg/rules.py b/slpkg/rules.py index c9ec3d3a..fb1f9a73 100644 --- a/slpkg/rules.py +++ b/slpkg/rules.py @@ -23,7 +23,7 @@ class Rules(Configs): if self.rules_file_toml.is_file(): try: with open(self.rules_file_toml, 'rb') as conf: - packages: tuple = tuple(tomli.load(conf)['UPDATES']['PACKAGES']) + packages: tuple = tuple(tomli.load(conf)['UPGRADE']['PACKAGES']) except (tomli.TOMLDecodeError, KeyError) as error: self.errors.raise_toml_error_message(error, self.rules_file_toml)