Commit bf58aa81 authored by Julien Muchembled's avatar Julien Muchembled

Indent big section of code before actual changes

parent 837c540d
...@@ -675,6 +675,7 @@ class Buildout(UserDict.DictMixin): ...@@ -675,6 +675,7 @@ class Buildout(UserDict.DictMixin):
installed_parts = installed_part_options['buildout']['parts'] installed_parts = installed_part_options['buildout']['parts']
installed_parts = installed_parts and installed_parts.split() or [] installed_parts = installed_parts and installed_parts.split() or []
try:
if install_args: if install_args:
install_parts = install_args install_parts = install_args
uninstall_missing = False uninstall_missing = False
...@@ -723,17 +724,16 @@ class Buildout(UserDict.DictMixin): ...@@ -723,17 +724,16 @@ class Buildout(UserDict.DictMixin):
if self._logger.getEffectiveLevel() < logging.DEBUG: if self._logger.getEffectiveLevel() < logging.DEBUG:
for k in old_options: for k in old_options:
if k not in new_options: if k not in new_options:
self._logger.debug("Part %s, dropped option %s.", self._logger.debug(
part, k) "Part %s, dropped option %s.", part, k)
elif old_options[k] != new_options[k]: elif old_options[k] != new_options[k]:
self._logger.debug( self._logger.debug(
"Part %s, option %s changed:\n%r != %r", "Part %s, option %s changed:\n%r != %r",
part, k, new_options[k], old_options[k], part, k, new_options[k], old_options[k])
)
for k in new_options: for k in new_options:
if k not in old_options: if k not in old_options:
self._logger.debug("Part %s, new option %s.", self._logger.debug(
part, k) "Part %s, new option %s.", part, k)
elif not uninstall_missing: elif not uninstall_missing:
continue continue
...@@ -829,6 +829,9 @@ class Buildout(UserDict.DictMixin): ...@@ -829,6 +829,9 @@ class Buildout(UserDict.DictMixin):
assert installed_exists # nothing to tell the user here assert installed_exists # nothing to tell the user here
self._update_installed(parts=' '.join(installed_parts)) self._update_installed(parts=' '.join(installed_parts))
finally:
pass
if installed_develop_eggs: if installed_develop_eggs:
if not installed_exists: if not installed_exists:
self._save_installed_options(installed_part_options) self._save_installed_options(installed_part_options)
......
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