diff options
author | figsoda <figsoda@pm.me> | 2022-11-08 15:32:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 15:32:27 -0500 |
commit | 29b89141bff716e1c0a12408b677c5a57fcfc2a2 (patch) | |
tree | 2f1010ae6e82ce2d558268785636d84b78822f2f /maintainers | |
parent | 1068d2db935169c23f83c967a492b7a3f2db4d87 (diff) | |
parent | c95706ac44ffa749779bace03b115eab89c66cae (diff) | |
download | nixlib-29b89141bff716e1c0a12408b677c5a57fcfc2a2.tar nixlib-29b89141bff716e1c0a12408b677c5a57fcfc2a2.tar.gz nixlib-29b89141bff716e1c0a12408b677c5a57fcfc2a2.tar.bz2 nixlib-29b89141bff716e1c0a12408b677c5a57fcfc2a2.tar.lz nixlib-29b89141bff716e1c0a12408b677c5a57fcfc2a2.tar.xz nixlib-29b89141bff716e1c0a12408b677c5a57fcfc2a2.tar.zst nixlib-29b89141bff716e1c0a12408b677c5a57fcfc2a2.zip |
Merge pull request #199553 from figsoda/nvim-treesitter
vimPlugins: also update nvim-treesitter grammars in the update script
Diffstat (limited to 'maintainers')
-rw-r--r-- | maintainers/scripts/pluginupdate.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/maintainers/scripts/pluginupdate.py b/maintainers/scripts/pluginupdate.py index 55eda3c7d45d..46788edd236e 100644 --- a/maintainers/scripts/pluginupdate.py +++ b/maintainers/scripts/pluginupdate.py @@ -342,6 +342,7 @@ class Editor: self.default_out = default_out or root.joinpath("generated.nix") self.deprecated = deprecated or root.joinpath("deprecated.json") self.cache_file = cache_file or f"{name}-plugin-cache.json" + self.nixpkgs_repo = None def get_current_plugins(self) -> List[Plugin]: """To fill the cache""" @@ -670,16 +671,15 @@ def update_plugins(editor: Editor, args): autocommit = not args.no_commit - nixpkgs_repo = None if autocommit: - nixpkgs_repo = git.Repo(editor.root, search_parent_directories=True) - commit(nixpkgs_repo, f"{editor.attr_path}: update", [args.outfile]) + editor.nixpkgs_repo = git.Repo(editor.root, search_parent_directories=True) + commit(editor.nixpkgs_repo, f"{editor.attr_path}: update", [args.outfile]) if redirects: update() if autocommit: commit( - nixpkgs_repo, + editor.nixpkgs_repo, f"{editor.attr_path}: resolve github repository redirects", [args.outfile, args.input_file, editor.deprecated], ) @@ -692,7 +692,7 @@ def update_plugins(editor: Editor, args): plugin, _ = prefetch_plugin(pdesc, ) if autocommit: commit( - nixpkgs_repo, + editor.nixpkgs_repo, "{drv_name}: init at {version}".format( drv_name=editor.get_drv_name(plugin.normalized_name), version=plugin.version |