mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Renamed to upgrade
This commit is contained in:
parent
da9056fdd0
commit
22c37339cc
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
# /etc/slpkg/rules.toml
|
# /etc/slpkg/rules.toml
|
||||||
# Date: 23/05/2023, Version: 4.8.6
|
# Date: 23/05/2023, Version: 4.8.6
|
||||||
|
|
||||||
[UPDATES]
|
[UPGRADE]
|
||||||
# If the installed package version pattern has a different matching
|
# If the installed package version pattern has a different matching
|
||||||
# than the repository version for some special rules like nvidia-kernel,
|
# than the repository version for some special rules like nvidia-kernel,
|
||||||
# please add the package in this list below.
|
# please add the package in this list below.
|
||||||
|
|
|
@ -23,7 +23,7 @@ class Rules(Configs):
|
||||||
if self.rules_file_toml.is_file():
|
if self.rules_file_toml.is_file():
|
||||||
try:
|
try:
|
||||||
with open(self.rules_file_toml, 'rb') as conf:
|
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:
|
except (tomli.TOMLDecodeError, KeyError) as error:
|
||||||
self.errors.raise_toml_error_message(error, self.rules_file_toml)
|
self.errors.raise_toml_error_message(error, self.rules_file_toml)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue