From f6b418af167bd55f165dcdddb686edf694d25e60 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Tue, 25 Jul 2023 02:29:39 +0200 Subject: fixed packages having a "v" in their version This messed with how Northstar searches for packages, as it doesn't conform to it's standard. --- src/modules/packages.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/packages.js b/src/modules/packages.js index 0f23c81..f868d16 100644 --- a/src/modules/packages.js +++ b/src/modules/packages.js @@ -34,6 +34,10 @@ function update_path() { }; update_path(); packages.format_name = (author, package_name, version) => { + if (version && version[0] == "v") { + version = version.substring(1, version.length); + } + return author + "-" + package_name + "-" + version; } -- cgit v1.2.3