From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-catalyst+bounces-3304-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EFC7F13888F for <garchives@archives.gentoo.org>; Tue, 6 Oct 2015 20:33:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63CAE21C01A; Tue, 6 Oct 2015 20:32:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F249E21C01A for <gentoo-catalyst@lists.gentoo.org>; Tue, 6 Oct 2015 20:32:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id AB16A3406A7 for <gentoo-catalyst@lists.gentoo.org>; Tue, 6 Oct 2015 20:32:55 +0000 (UTC) From: Mike Frysinger <vapier@gentoo.org> To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 1/2] snapshot: do not preserve owner/group Date: Tue, 6 Oct 2015 16:32:52 -0400 Message-Id: <1444163573-11337-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.5.2 Precedence: bulk List-Post: <mailto:gentoo-catalyst@lists.gentoo.org> List-Help: <mailto:gentoo-catalyst+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-catalyst+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-catalyst+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-catalyst.gentoo.org> X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: 797d34aa-5165-4e92-b424-787f86ff68a8 X-Archives-Hash: 37d4e00db714370104bd17d1e7833eea There's no need to preserve ownership on the files we sync into the snapshot, so just let rsync create them as it will (current uid/gid). This slightly speeds things up when the files are owned by a non-root user too. --- catalyst/targets/snapshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/targets/snapshot.py b/catalyst/targets/snapshot.py index 6007aaa..e1ca7b7 100644 --- a/catalyst/targets/snapshot.py +++ b/catalyst/targets/snapshot.py @@ -56,7 +56,7 @@ class snapshot(TargetBase, GenBase): ensure_dirs(mytmp) target_snapshot = self.settings["portdir"] + "/ " + mytmp + "/%s/" % self.settings["repo_name"] - cmd("rsync -a --delete --exclude /packages/ --exclude /distfiles/ " + + cmd("rsync -a --no-o --no-g --delete --exclude /packages/ --exclude /distfiles/ " + "--exclude /local/ --exclude CVS/ --exclude .svn --filter=H_**/files/digest-* " + target_snapshot, "Snapshot failure", env=self.env) -- 2.5.2