modules/tinderbox_target.py: Use 'portdir' instead of hard-coding '/usr/portage'
authorBrian Dolbec <dolsen@gentoo.org>
Tue, 8 Jan 2013 07:17:22 +0000 (23:17 -0800)
committerMatt Turner <mattst88@gmail.com>
Sun, 15 Dec 2013 04:17:00 +0000 (20:17 -0800)
W. Trevor King: Refactored Git history for Brian Dolbec's content
changes with additional whitespace cleanups.

Reviewed-by: Matt Turner <mattst88@gentoo.org>
Signed-off-by: W. Trevor King <wking@tremily.us>
Signed-off-by: Brian Dolbec <dolsen@gentoo.org>
modules/tinderbox_target.py

index 46fe08299d44c41b749eba990256501da0840b4e..ca556108ed1d252d751c97136f2e31bc834856fb 100644 (file)
@@ -29,8 +29,12 @@ class tinderbox_target(generic_stage_target):
                        raise CatalystError,"Tinderbox aborting due to error."
 
        def set_cleanables(self):
-           self.settings["cleanables"]=["/etc/resolv.conf","/var/tmp/*","/root/*",\
-                                       "/usr/portage"]
+               self.settings['cleanables'] = [
+                       '/etc/resolv.conf',
+                       '/var/tmp/*',
+                       '/root/*',
+                       self.settings['portdir'],
+                       ]
 
        def set_action_sequence(self):
                #Default action sequence for run method