Skip to content

Commit

Permalink
targetuserspacecreator: stop skipping directory-hash (oamg#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
(cherry picked from commit 24700ee)
  • Loading branch information
t184256 authored and yuravk committed Aug 19, 2024
1 parent 31a70ec commit 8c0b99e
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,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 8c0b99e

Please sign in to comment.