From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 021EE138BED for ; Thu, 8 Oct 2015 22:09:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61DC921C005; Thu, 8 Oct 2015 22:09:07 +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 D13DFE0826 for ; Thu, 8 Oct 2015 22:09:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 062713406F3 for ; Thu, 8 Oct 2015 22:09:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E7829C62 for ; Thu, 8 Oct 2015 22:09:03 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1444342077.052d3a8f3813a0d4ff13d8d865192bf144cd8bb7.vapier@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/targets/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/targets/snapshot.py X-VCS-Directories: catalyst/targets/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 052d3a8f3813a0d4ff13d8d865192bf144cd8bb7 X-VCS-Branch: master Date: Thu, 8 Oct 2015 22:09:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9a14b3d3-aae7-49c7-8a91-f1347e4d4443 X-Archives-Hash: 09780121988a91e94c546d0bfc9a4ccd commit: 052d3a8f3813a0d4ff13d8d865192bf144cd8bb7 Author: Mike Frysinger gentoo org> AuthorDate: Tue Oct 6 20:30:55 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Oct 8 22:07:57 2015 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=052d3a8f snapshot: do not preserve owner/group 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)