From 651249a6c598eb12f821514cc55f3263cfa847c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88kull=20So=CC=81lberg=20Au=C3=B0unsson?= Date: Sun, 27 Nov 2011 11:43:18 +0000 Subject: [PATCH] Bad logic in delete output booleans. Pretty sure this is just a check to make sure the posts directory is not inside the output. --- pelican/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pelican/__init__.py b/pelican/__init__.py index d5cf2d04..edd30968 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -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()