kkpyutil 1.49.1__tar.gz → 1.49.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kkpyutil-1.49.1 → kkpyutil-1.49.2}/PKG-INFO +1 -1
- {kkpyutil-1.49.1 → kkpyutil-1.49.2}/kkpyutil.py +7 -0
- {kkpyutil-1.49.1 → kkpyutil-1.49.2}/pyproject.toml +1 -1
- {kkpyutil-1.49.1 → kkpyutil-1.49.2}/LICENSE +0 -0
- {kkpyutil-1.49.1 → kkpyutil-1.49.2}/README.md +0 -0
- {kkpyutil-1.49.1 → kkpyutil-1.49.2}/kkpyutil_helper/windows/kkttssave.ps1 +0 -0
- {kkpyutil-1.49.1 → kkpyutil-1.49.2}/kkpyutil_helper/windows/kkttsspeak.ps1 +0 -0
|
@@ -2148,6 +2148,13 @@ def sync_dirs(src_root, dst_root, logger=glogger, sudo=False):
|
|
|
2148
2148
|
if not _run_sudo_command(cmd, pwd, logger):
|
|
2149
2149
|
logger.error(f'Sync failed with command: {cmd}; you may have entered wrong password')
|
|
2150
2150
|
return False
|
|
2151
|
+
# 3. Step Two: Fix Ownership
|
|
2152
|
+
# -R is recursive. We set it to the user and the 'staff' group.
|
|
2153
|
+
chown_cmd = ['chown', '-R', f'{user}:staff', dst_root]
|
|
2154
|
+
logger.info(f"Setting ownership of {dst_root} to {user}...")
|
|
2155
|
+
if not _run_sudo_command(chown_cmd, pwd, logger):
|
|
2156
|
+
logger.error("Failed to set ownership.")
|
|
2157
|
+
return False
|
|
2151
2158
|
return True
|
|
2152
2159
|
|
|
2153
2160
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|