Commit a5d8c3a9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Revert "patch from https://bugs.launchpad.net/zc.buildout/+bug/144228."

This reverts commit dcea4db0.
parent dcea4db0
...@@ -787,7 +787,9 @@ class Buildout(UserDict.DictMixin): ...@@ -787,7 +787,9 @@ class Buildout(UserDict.DictMixin):
if not f: if not f:
continue continue
f = self._buildout_path(f) f = self._buildout_path(f)
if os.path.isfile(f) or os.path.islink(f): if os.path.isdir(f):
rmtree(f)
elif os.path.isfile(f):
try: try:
os.remove(f) os.remove(f)
except OSError: except OSError:
...@@ -802,8 +804,6 @@ class Buildout(UserDict.DictMixin): ...@@ -802,8 +804,6 @@ class Buildout(UserDict.DictMixin):
# and, of course, it's in use. Leave it. # and, of course, it's in use. Leave it.
): ):
raise raise
elif os.path.isdir(f):
rmtree(f)
def _install(self, part): def _install(self, part):
options = self[part] options = self[part]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment