Skip to content

Commit

Permalink
targetuserspacecreator: stop skipping directory-hash (#1278)
Browse files Browse the repository at this point in the history
Reverting commit  60f500e

The original commit only workarounded the root cause - leaked file descriptors in the leapp stdlib when using the `run` function. Dropping the change in the actor as it is not needed anymore.

relates: oamg/leapp#880
  • Loading branch information
t184256 authored Aug 13, 2024
1 parent 896fe43 commit 24700ee
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,6 @@ def _get_files_owned_by_rpms(context, dirpath, pkgs=None, recursive=False):
for root, _, files in os.walk(searchdir):
for filename in files:
relpath = os.path.relpath(os.path.join(root, filename), searchdir)
# "directory-hash" files are not owned by any package and can dynamically
# grow to a huge amount of files causing hitting open files limit
if 'directory-hash' in relpath:
continue
file_list.append(relpath)
else:
file_list = os.listdir(searchdir)
Expand Down

0 comments on commit 24700ee

Please sign in to comment.