From: Andrew Gaffney Date: Sun, 13 Sep 2009 22:16:42 +0000 (-0500) Subject: Add --exclude /packages/ to the rsync line for the snapshot X-Git-Tag: CATALYST-2.0.10~3^2~100 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74d0bc5ef09a6248a48ae2c136b64c723afc310b;p=catalyst.git Add --exclude /packages/ to the rsync line for the snapshot --- diff --git a/ChangeLog b/ChangeLog index 6e71c06f..20712efd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ # Distributed under the GPL v2 # $Id$ + 13 Sep 2009; Andrew Gaffney + modules/catalyst/target/snapshot.py: + Add --exclude /packages/ to the rsync line for the snapshot + 13 Sep 2009; Andrew Gaffney modules/catalyst/target/generic_stage.py, modules/catalyst/util.py: Create catalyst.util.move() helper and use it diff --git a/modules/catalyst/target/snapshot.py b/modules/catalyst/target/snapshot.py index cbee31fd..0eb7a3fb 100644 --- a/modules/catalyst/target/snapshot.py +++ b/modules/catalyst/target/snapshot.py @@ -45,10 +45,10 @@ class snapshot_target(catalyst.target.generic.generic_target): os.makedirs(mytmp) catalyst.util.rsync(self.settings["portdir"] + "/", mytmp + "/portage/", delete=True, \ - extra_opts="--exclude /distfiles/ --exclude /local/ --exclude CVS/ --exclude .svn --filter=H_**/files/digest-*") + extra_opts="--exclude /distfiles/ --exclude /local/ --exclude /packages/ --exclude CVS/ --exclude .svn --filter=H_**/files/digest-*") msg("Compressing Portage snapshot tarball...") - catalyst.util.create_tarball(self.settings["snapshot_path"], "portage", mytmp) + catalyst.util.create_tarball(self.settings["snapshot_path"], "portage", working_dir=mytmp) catalyst.hash.gen_contents_file(self.settings["snapshot_path"], self.settings) catalyst.hash.gen_digest_file(self.settings["snapshot_path"], self.settings)