From cffb6cb63762d0ddc5f7470b783159672ed683b1 Mon Sep 17 00:00:00 2001 From: ryneeverett Date: Tue, 24 Mar 2020 14:46:07 +0000 Subject: vimPlugins: Update redirects without flag. Per review, the input file will now be rewritten automatically if redirects are found. --- pkgs/misc/vim-plugins/update.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'pkgs/misc/vim-plugins') diff --git a/pkgs/misc/vim-plugins/update.py b/pkgs/misc/vim-plugins/update.py index 9410f78be28a..c0ecd5d036e8 100755 --- a/pkgs/misc/vim-plugins/update.py +++ b/pkgs/misc/vim-plugins/update.py @@ -433,7 +433,7 @@ following steps: 3. Make sure the updated {input_file} is still correctly sorted: sort -udf ./vim-plugin-names > sorted && mv sorted vim-plugin-names 4. Run this script again so these changes will be reflected in the - generated expressions (no need to use the --update-redirects flag again): + generated expressions: ./update.py 5. Commit {input_file} along with aliases and generated expressions: git add {output_file} {input_file} aliases.nix @@ -463,12 +463,6 @@ def parse_args(): default=DEFAULT_OUT, help="Filename to save generated nix code", ) - parser.add_argument( - "--update-redirects", - dest="update_redirects", - action="store_true", - help="Update input file if repos have been redirected.", - ) return parser.parse_args() @@ -495,13 +489,7 @@ def main() -> None: generate_nix(plugins, args.outfile) if redirects: - if args.update_redirects: - update_redirects(args.input_file, args.outfile, redirects) - else: - print( - "Outdated vim-plugin-names found. Please run with " - "--update-redirects flag." - ) + update_redirects(args.input_file, args.outfile, redirects) if __name__ == "__main__": -- cgit 1.4.1