mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated for comments
This commit is contained in:
parent
1afbd9174e
commit
64789419b5
1 changed files with 2 additions and 0 deletions
|
@ -190,12 +190,14 @@ class Utilities(Configs):
|
|||
|
||||
@staticmethod
|
||||
def change_owner_privileges(folder: Path):
|
||||
""" Changes thw owner privileges. """
|
||||
os.chown(folder, 0, 0)
|
||||
for file in os.listdir(folder):
|
||||
os.chown(Path(folder, file), 0, 0)
|
||||
|
||||
@staticmethod
|
||||
def case_insensitive_pattern_matching(packages: list, data: dict) -> list:
|
||||
""" Case-insensitive pattern matching packages. """
|
||||
repo_packages: tuple = tuple(data.keys())
|
||||
for package in packages:
|
||||
for pkg in repo_packages:
|
||||
|
|
Loading…
Reference in a new issue