mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Updated for hiding files
This commit is contained in:
parent
c8a54dfd81
commit
43b926c972
1 changed files with 5 additions and 5 deletions
|
@ -51,9 +51,9 @@ class Utilities:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for file in var_log_packages.glob(self.configs.file_pattern):
|
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
|
yield file.name
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
@ -64,10 +64,10 @@ class Utilities:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for file in var_log_packages.glob(self.configs.file_pattern):
|
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 package_name
|
yield name
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue