From 968cffcfae293377c60460bf654efbcecd982228 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 26 Feb 2007 03:37:40 +0000 Subject: [PATCH] For bug #167668, prune empty ${FILESDIR}s by adding --prune-empty-dirs to PORTAGE_RSYNC_OPTS. Thanks to Ulrich Mueller for the suggestion. svn path=/main/trunk/; revision=6070 --- cnf/make.globals | 2 +- 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: -- 2.26.2