Updated for hiding files

This commit is contained in:
Dimitris Zlatanidis 2023-04-05 20:12:10 +03:00
parent c8a54dfd81
commit 43b926c972

View file

@ -51,9 +51,9 @@ class Utilities:
try:
for file in var_log_packages.glob(self.configs.file_pattern):
package_name = self.split_binary_pkg(file.name)[0]
name = self.split_binary_pkg(file.name)[0]
if package_name not in self.black.packages():
if not name.startswith('.') and name not in self.black.packages():
yield file.name
except ValueError:
pass
@ -64,10 +64,10 @@ class Utilities:
try:
for file in var_log_packages.glob(self.configs.file_pattern):
package_name = self.split_binary_pkg(file.name)[0]
name = self.split_binary_pkg(file.name)[0]
if package_name not in self.black.packages():
yield package_name
if not name.startswith('.') and name not in self.black.packages():
yield name
except ValueError:
pass