From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5E901139083 for ; Mon, 18 Dec 2017 16:57:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C57F2E0F89; Mon, 18 Dec 2017 16:57:14 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0EE1E0F89 for ; Mon, 18 Dec 2017 16:57:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC51F33BF43 for ; Mon, 18 Dec 2017 16:57:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5291CAE6B for ; Mon, 18 Dec 2017 16:57:12 +0000 (UTC) From: "Richard Farina" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Farina" Message-ID: <1513616229.4682b7c6c12fdaa918d39e9f29e1f1f2152408f7.zerochaos@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: zerochaos X-VCS-Committer-Name: Richard Farina X-VCS-Revision: 4682b7c6c12fdaa918d39e9f29e1f1f2152408f7 X-VCS-Branch: master Date: Mon, 18 Dec 2017 16:57:12 +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: ebddb986-ce8b-49ce-987f-8c1a41d1dc7b X-Archives-Hash: 7081db549554b9337d1d3f1f88ce272d commit: 4682b7c6c12fdaa918d39e9f29e1f1f2152408f7 Author: Rick Farina (Zero_Chaos) gentoo org> AuthorDate: Mon Dec 18 16:57:09 2017 +0000 Commit: Richard Farina gentoo org> CommitDate: Mon Dec 18 16:57:09 2017 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=4682b7c6 make snapshot respect options=keepwork catalyst/targets/snapshot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalyst/targets/snapshot.py b/catalyst/targets/snapshot.py index 087834eb..726bc512 100644 --- a/catalyst/targets/snapshot.py +++ b/catalyst/targets/snapshot.py @@ -85,8 +85,8 @@ class snapshot(TargetBase, GenBase): log.notice('Snapshot successfully written to %s', filename) self.gen_contents_file(filename) self.gen_digest_file(filename) - - self.cleanup() + if "keepwork" not in self.settings["options"]: + self.cleanup() if success: log.info('snapshot: complete!') return success