PORTAGE_RSYNC_OPTS: --omit-dir-times
authorZac Medico <zmedico@gentoo.org>
Tue, 23 Jul 2013 19:25:37 +0000 (12:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 23 Jul 2013 19:25:37 +0000 (12:25 -0700)
Directory modification times are irrelevant, and preserving them can be
annoying when using squashfs + unionfs, since it can trigger creation
many empty directories in the RW branch.

cnf/make.globals
pym/_emerge/actions.py

index 3c3ddc56e5eff75b12ed391e66a06ee280fafc5c..e291b82863b577c7db11975740b73c9925f3b589 100644 (file)
@@ -92,7 +92,7 @@ PORTAGE_RSYNC_RETRIES="-1"
 # Number of seconds rsync will wait before timing out.
 #RSYNC_TIMEOUT="180"
 
-PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
+PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
 
 # The number of days after the last `emerge --sync` that a warning
 # message should be produced.
index 0fecc8fc3b0d06c2614af979470c3c55d9be7ad7..8c314b3761d924adc931fc9249c94aa5377e8cc1 100644 (file)
@@ -2169,6 +2169,7 @@ def _sync_repo(emerge_config, repo):
                                "--safe-links",   # Ignore links outside of tree
                                "--perms",        # Preserve permissions
                                "--times",        # Preserive mod times
+                               "--omit-dir-times",
                                "--compress",     # Compress the data transmitted
                                "--force",        # Force deletion on non-empty dirs
                                "--whole-file",   # Don't do block transfers, only entire files