Skip to content

Commit

Permalink
Only change ihome files ownership for --rebuild mode
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Feb 4, 2024
1 parent 9ef7164 commit 60628b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mock/py/mockbuild/buildroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ def _init(self, prebuild):

# Change owner of homdir tree if the root of it not owned
# by the current user
self.chown_home_dir()
if prebuild:
self.chown_home_dir()

# mark the buildroot as initialized
file_util.touch(self.make_chroot_path('.initialized'))
Expand Down

0 comments on commit 60628b2

Please sign in to comment.