vimPlugins: only update generated.nix if all plugins were downloaded

https://github.com/NixOS/nixpkgs/pull/46728#discussion_r217915996
This commit is contained in:
Jörg Thalheim 2018-09-16 16:58:48 +01:00
parent d499b7d821
commit dec78a23d1

View File

@ -193,12 +193,14 @@ def check_results(
print(f"{len(results) - len(failures)} plugins were checked", end="")
if len(failures) == 0:
print()
return plugins
else:
print(f", {len(failures)} plugin(s) could not be downloaded:\n")
for (plugin, exception) in failures:
print_download_error(plugin, exception)
return plugins
sys.exit(1)
def load_plugin_spec() -> List[Tuple[str, str]]: