Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only change home files ownership for --rebuild mode
Changing ownership of the entire $HOME directory tree is sometimes an expensive task and a no-op anyway because there's typically no reason for files with the wrong ownership to appear. Let's stop doing it to make the subsequent mock --chroot calls faster and more predictable. In other words, if users want to shoot themselves in the foot and give the files in '/builddir' away (e.g., using "privileged" --chroot calls), Mock will no longer fix the ownership problems. We only continue to fix the permissions for the --rebuild mode, which shouldn't be expensive (because there are pre-build cleanups) and seems important enough to risk changing. Suggested by @kdudka in rpm-software-management#1257.
- Loading branch information