summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2023-04-22 00:12:02 +0200
committerMatthieu Coudron <teto@users.noreply.github.com>2023-04-22 15:17:44 +0200
commitc9873fdef0413155137da5bbfde78b6e61d65097 (patch)
tree29f300303a76c57b08017ee0a81a31306c35644d
parentd503b6e1938c6cc7646b33547da4da779ba104c5 (diff)
downloadnixpkgs-c9873fdef0413155137da5bbfde78b6e61d65097.tar
nixpkgs-c9873fdef0413155137da5bbfde78b6e61d65097.tar.gz
nixpkgs-c9873fdef0413155137da5bbfde78b6e61d65097.tar.bz2
nixpkgs-c9873fdef0413155137da5bbfde78b6e61d65097.tar.lz
nixpkgs-c9873fdef0413155137da5bbfde78b6e61d65097.tar.xz
nixpkgs-c9873fdef0413155137da5bbfde78b6e61d65097.tar.zst
nixpkgs-c9873fdef0413155137da5bbfde78b6e61d65097.zip
lua/updater: fix a few issues
there were remaining tabs in file and the update member was not implemented
-rwxr-xr-xmaintainers/scripts/update-luarocks-packages10
1 files changed, 7 insertions, 3 deletions
diff --git a/maintainers/scripts/update-luarocks-packages b/maintainers/scripts/update-luarocks-packages
index 0e1e188e0b3..791cd8a1d89 100755
--- a/maintainers/scripts/update-luarocks-packages
+++ b/maintainers/scripts/update-luarocks-packages
@@ -26,7 +26,8 @@ log = logging.getLogger()
 log.addHandler(logging.StreamHandler())
 
 ROOT = Path(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))).parent.parent # type: ignore
-from pluginupdate import Editor, update_plugins, FetchConfig, CleanEnvironment
+import pluginupdate
+from pluginupdate import update_plugins, FetchConfig, CleanEnvironment
 
 PKG_LIST="maintainers/scripts/luarocks-packages.csv"
 TMP_FILE="$(mktemp)"
@@ -70,7 +71,7 @@ class LuaPlugin:
         return self.name.replace(".", "-")
 
 # rename Editor to LangUpdate/ EcosystemUpdater
-class LuaEditor(Editor):
+class LuaEditor(pluginupdate.Editor):
     def get_current_plugins(self):
         return []
 
@@ -87,6 +88,9 @@ class LuaEditor(Editor):
                 luaPackages.append(plugin)
         return luaPackages
 
+    def update(self, args):
+        update_plugins(self, args)
+
     def generate_nix(
         self,
         results: List[Tuple[LuaPlugin, str]],
@@ -203,7 +207,7 @@ def main():
         default_out = ROOT.joinpath(GENERATED_NIXFILE)
         )
 
-	editor.run()
+    editor.run()
 
 if __name__ == "__main__":