From 87eaea7639686f40aca1e4e7f608ed235ba175ab Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Thu, 1 Mar 2012 15:57:30 -0800 Subject: [PATCH] Comment on why we add download dir even if it wasn't created. --- devstack/component.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devstack/component.py b/devstack/component.py index 7f63f4cf..5f92cfd3 100644 --- a/devstack/component.py +++ b/devstack/component.py @@ -109,6 +109,11 @@ class PkgInstallComponent(ComponentBase): uri = self.cfg.get(uri_tuple[0], uri_tuple[1]) self.tracewriter.downloaded(target_loc, uri) dirs_made = down.download(target_loc, uri, branch) + #ensure this is always added so that + #if a keep old happens then this of course + #won't be recreated, but if u uninstall without keeping old + #then this won't be deleted this time around + #adding it in is harmless and willl make sure its removed dirs_made.append(target_loc) self.tracewriter.dir_made(*dirs_made) return len(locations)