1
0
Fork 0
forked from github/pelican

Bad logic in delete output booleans. Pretty sure this is just a check to make sure the posts directory is not inside the output.

This commit is contained in:
Jökull Sólberg Auðunsson 2011-11-27 11:43:18 +00:00 committed by Alexis Metaireau
commit 651249a6c5

View file

@ -65,8 +65,8 @@ class Pelican(object):
# erase the directory if it is not the source and if that's
# explicitely asked
if (self.delete_outputdir and
os.path.realpath(self.path).startswith(self.output_path)):
if (self.delete_outputdir and not
os.path.realpath(self.path).startswith(self.output_path)):
clean_output_dir(self.output_path)
writer = self.get_writer()