mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
lua/updater: fix a few issues
there were remaining tabs in file and the update member was not implemented
This commit is contained in:
parent
d503b6e193
commit
c9873fdef0
@ -26,7 +26,8 @@ log = logging.getLogger()
|
|||||||
log.addHandler(logging.StreamHandler())
|
log.addHandler(logging.StreamHandler())
|
||||||
|
|
||||||
ROOT = Path(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))).parent.parent # type: ignore
|
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"
|
PKG_LIST="maintainers/scripts/luarocks-packages.csv"
|
||||||
TMP_FILE="$(mktemp)"
|
TMP_FILE="$(mktemp)"
|
||||||
@ -70,7 +71,7 @@ class LuaPlugin:
|
|||||||
return self.name.replace(".", "-")
|
return self.name.replace(".", "-")
|
||||||
|
|
||||||
# rename Editor to LangUpdate/ EcosystemUpdater
|
# rename Editor to LangUpdate/ EcosystemUpdater
|
||||||
class LuaEditor(Editor):
|
class LuaEditor(pluginupdate.Editor):
|
||||||
def get_current_plugins(self):
|
def get_current_plugins(self):
|
||||||
return []
|
return []
|
||||||
|
|
||||||
@ -87,6 +88,9 @@ class LuaEditor(Editor):
|
|||||||
luaPackages.append(plugin)
|
luaPackages.append(plugin)
|
||||||
return luaPackages
|
return luaPackages
|
||||||
|
|
||||||
|
def update(self, args):
|
||||||
|
update_plugins(self, args)
|
||||||
|
|
||||||
def generate_nix(
|
def generate_nix(
|
||||||
self,
|
self,
|
||||||
results: List[Tuple[LuaPlugin, str]],
|
results: List[Tuple[LuaPlugin, str]],
|
||||||
@ -203,7 +207,7 @@ def main():
|
|||||||
default_out = ROOT.joinpath(GENERATED_NIXFILE)
|
default_out = ROOT.joinpath(GENERATED_NIXFILE)
|
||||||
)
|
)
|
||||||
|
|
||||||
editor.run()
|
editor.run()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user