1 |
commit: 2498ce1f0c45979b29b7af330eaef0c3a17abfa7 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 31 09:04:29 2013 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Dec 31 10:00:27 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=2498ce1f |
7 |
|
8 |
Add remove_chroot and remove_autoresume functions. |
9 |
|
10 |
--- |
11 |
catalyst/base/clearbase.py | 18 +++++++++++++++--- |
12 |
1 file changed, 15 insertions(+), 3 deletions(-) |
13 |
|
14 |
diff --git a/catalyst/base/clearbase.py b/catalyst/base/clearbase.py |
15 |
index e38b1a8..8cad779 100644 |
16 |
--- a/catalyst/base/clearbase.py |
17 |
+++ b/catalyst/base/clearbase.py |
18 |
@@ -16,16 +16,28 @@ class ClearBase(object): |
19 |
self.resume = None |
20 |
|
21 |
|
22 |
- def clear_autoresume(self, remove=False): |
23 |
+ def clear_autoresume(self): |
24 |
""" Clean resume points since they are no longer needed """ |
25 |
if "autoresume" in self.settings["options"]: |
26 |
print "Removing AutoResume Points: ..." |
27 |
self.resume.clear_all() |
28 |
|
29 |
|
30 |
- def clear_chroot(self, remove=False): |
31 |
+ def remove_autoresume(self): |
32 |
+ """ Rmove all resume points since they are no longer needed """ |
33 |
+ if "autoresume" in self.settings["options"]: |
34 |
+ print "Removing AutoResume: ..." |
35 |
+ self.resume.clear_all(remove=True) |
36 |
+ |
37 |
+ |
38 |
+ def clear_chroot(self): |
39 |
print 'Clearing the chroot path ...' |
40 |
- clear_dir(self.settings["chroot_path"], 0755, True, remove) |
41 |
+ clear_dir(self.settings["chroot_path"], 0755, True) |
42 |
+ |
43 |
+ |
44 |
+ def remove_chroot(self): |
45 |
+ print 'Removing the chroot path ...' |
46 |
+ clear_dir(self.settings["chroot_path"], 0755, True, remove=True) |
47 |
|
48 |
|
49 |
def clear_packages(self, remove=False): |