commit:     052d3a8f3813a0d4ff13d8d865192bf144cd8bb7
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  6 20:30:55 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> 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)

Reply via email to