mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +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:
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue