diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-02-26 03:37:40 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-02-26 03:37:40 +0000 |
commit | 968cffcfae293377c60460bf654efbcecd982228 (patch) | |
tree | b10e249224036b1a6cdd3471d50ea17533538bc8 | |
parent | 4cacc8846414beadaccc8f14f70130ad2deb249b (diff) | |
download | portage-968cffcfae293377c60460bf654efbcecd982228.tar.gz portage-968cffcfae293377c60460bf654efbcecd982228.tar.bz2 portage-968cffcfae293377c60460bf654efbcecd982228.zip |
For bug #167668, prune empty ${FILESDIR}s by adding --prune-empty-dirs to PORTAGE_RSYNC_OPTS. Thanks to Ulrich Mueller <ulm@kph.uni-mainz.de> for the suggestion.
svn path=/main/trunk/; revision=6070
-rw-r--r-- | cnf/make.globals | 2 | ||||
-rw-r--r-- | pym/emerge/__init__.py | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cnf/make.globals b/cnf/make.globals index 45ffea680..13ec1b751 100644 --- a/cnf/make.globals +++ b/cnf/make.globals @@ -54,7 +54,7 @@ PORTAGE_RSYNC_RETRIES="3" # 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 --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" +PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-* --prune-empty-dirs" # Minimal CONFIG_PROTECT CONFIG_PROTECT="/etc" diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 5a6e2ba52..572baf883 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -3799,7 +3799,8 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): "--exclude=/distfiles", # Exclude distfiles from consideration "--exclude=/local", # Exclude local from consideration "--exclude=/packages", # Exclude packages from consideration - "--filter=H_**/files/digest-*" # Exclude manifest1 digests and delete on the receiving side + "--filter=H_**/files/digest-*", # Exclude manifest1 digests and delete on the receiving side + "--prune-empty-dirs" # Prune empty ${FILESDIR} when manifest1 digests are excluded ]) else: |