Renamed to upgrade

This commit is contained in:
Dimitris Zlatanidis 2023-05-23 22:29:51 +03:00
parent da9056fdd0
commit 22c37339cc
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -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)