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 B830E13888F for ; Tue, 6 Oct 2015 15:31:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F9CA21C038; Tue, 6 Oct 2015 15:31:31 +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 38A5321C041 for ; Tue, 6 Oct 2015 15:31:30 +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 81CFE340B3D for ; Tue, 6 Oct 2015 15:31:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D3D3AD5 for ; Tue, 6 Oct 2015 15:31:26 +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: <1444141986.e0c76c5cca51ad07c40ab9800ffe6fcfdec24aee.vapier@gentoo> Subject: [gentoo-commits] proj/catalyst:master commit in: catalyst/, catalyst/base/ X-VCS-Repository: proj/catalyst X-VCS-Files: catalyst/base/stagebase.py catalyst/lock.py X-VCS-Directories: catalyst/ catalyst/base/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: e0c76c5cca51ad07c40ab9800ffe6fcfdec24aee X-VCS-Branch: master Date: Tue, 6 Oct 2015 15:31:26 +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: 5a3b9454-47d0-4a32-abd4-9142be3b776e X-Archives-Hash: 4f476c850a6d910d7816c971c30b04c4 commit: e0c76c5cca51ad07c40ab9800ffe6fcfdec24aee Author: Mike Frysinger gentoo org> AuthorDate: Tue Oct 6 14:33:06 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Oct 6 14:33:06 2015 +0000 URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=e0c76c5c lint: init all members in __init__ A few class members were being set outside of __init__. Usually this is an oversight, so having the linter complain is helpful. Set up the few places in the code that don't do this. catalyst/base/stagebase.py | 2 ++ catalyst/lock.py | 1 + 2 files changed, 3 insertions(+) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index e393c5b..7bc7522 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -73,6 +73,7 @@ class StageBase(TargetBase, ClearBase, GenBase): previously. -agaffney """ + self.makeconf = {} self.archmap = {} self.subarchmap = {} machinemap = {} @@ -156,6 +157,7 @@ class StageBase(TargetBase, ClearBase, GenBase): self.set_source_subpath() """ Set paths """ + self.snapshot_lock_object = None self.set_snapshot_path() self.set_root_path() self.set_source_path() diff --git a/catalyst/lock.py b/catalyst/lock.py index d6653f7..d079b2d 100644 --- a/catalyst/lock.py +++ b/catalyst/lock.py @@ -54,6 +54,7 @@ class LockDir(object): else: LockDir.lock_dirs_in_use.append(lockdir) + self.myhardlock = None self.hardlock_paths={} def delete_lock_from_path_list(self):