From: Eric Edgar Date: Tue, 14 Feb 2006 18:05:56 +0000 (+0000) Subject: DIGESTS support for snapshot creation X-Git-Tag: CATALYST_2_0_6_916~405 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a6cd1b4109ea79f87b842b0cdd1efb5b9135a81e;p=catalyst.git DIGESTS support for snapshot creation git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1089 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index cf9cd1f8..10ce3f04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.574 2006/02/14 15:53:21 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.575 2006/02/14 18:05:56 rocket Exp $ + + 14 Feb 2006; Eric Edgar modules/snapshot_target.py: + DIGESTS support for snapshot creation 14 Feb 2006; Chris Gianelloni catalyst: This is catalyst 2.0_rc38, codenamed: When will the stinking release diff --git a/modules/snapshot_target.py b/modules/snapshot_target.py index 4915b613..502e169f 100644 --- a/modules/snapshot_target.py +++ b/modules/snapshot_target.py @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/modules/snapshot_target.py,v 1.15 2005/12/21 19:39:34 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/snapshot_target.py,v 1.16 2006/02/14 18:05:56 rocket Exp $ """ Builder class for snapshots. @@ -59,6 +59,9 @@ class snapshot_target(generic_target): print "Compressing Portage snapshot tarball..." cmd("tar cjf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\ "Snapshot creation failure",env=self.env) + + self.gen_digest_file(self.settings["snapshot_path"]) + self.cleanup() print "snapshot: complete!"