Updated for comments

This commit is contained in:
Dimitris Zlatanidis 2023-05-15 12:09:01 +03:00
parent 1afbd9174e
commit 64789419b5

View file

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