[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Lorax] Remove the check if the output directory exists when starting lorax.



Pungi creates the output directory before invoking the buildinstall,
so we don't want to require that the directory does not exist.
---
 src/pylorax/__init__.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
index c8e2691..338661d 100644
--- a/src/pylorax/__init__.py
+++ b/src/pylorax/__init__.py
@@ -78,7 +78,6 @@ class Lorax(BaseLoraxClass):
                                                 updatesdir=updatesdir)
 
         # create the output directory
-        assert not os.path.isdir(outputdir), "output directory exists"
         self.outputdir = outputdir
         makedirs_(self.outputdir)
 
-- 
1.6.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]