1 |
commit: e0c76c5cca51ad07c40ab9800ffe6fcfdec24aee |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 6 14:33:06 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 6 14:33:06 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=e0c76c5c |
7 |
|
8 |
lint: init all members in __init__ |
9 |
|
10 |
A few class members were being set outside of __init__. Usually this is |
11 |
an oversight, so having the linter complain is helpful. Set up the few |
12 |
places in the code that don't do this. |
13 |
|
14 |
catalyst/base/stagebase.py | 2 ++ |
15 |
catalyst/lock.py | 1 + |
16 |
2 files changed, 3 insertions(+) |
17 |
|
18 |
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py |
19 |
index e393c5b..7bc7522 100644 |
20 |
--- a/catalyst/base/stagebase.py |
21 |
+++ b/catalyst/base/stagebase.py |
22 |
@@ -73,6 +73,7 @@ class StageBase(TargetBase, ClearBase, GenBase): |
23 |
previously. -agaffney |
24 |
""" |
25 |
|
26 |
+ self.makeconf = {} |
27 |
self.archmap = {} |
28 |
self.subarchmap = {} |
29 |
machinemap = {} |
30 |
@@ -156,6 +157,7 @@ class StageBase(TargetBase, ClearBase, GenBase): |
31 |
self.set_source_subpath() |
32 |
|
33 |
""" Set paths """ |
34 |
+ self.snapshot_lock_object = None |
35 |
self.set_snapshot_path() |
36 |
self.set_root_path() |
37 |
self.set_source_path() |
38 |
|
39 |
diff --git a/catalyst/lock.py b/catalyst/lock.py |
40 |
index d6653f7..d079b2d 100644 |
41 |
--- a/catalyst/lock.py |
42 |
+++ b/catalyst/lock.py |
43 |
@@ -54,6 +54,7 @@ class LockDir(object): |
44 |
else: |
45 |
LockDir.lock_dirs_in_use.append(lockdir) |
46 |
|
47 |
+ self.myhardlock = None |
48 |
self.hardlock_paths={} |
49 |
|
50 |
def delete_lock_from_path_list(self): |