diff options
author | 0neGal <mail@0negal.com> | 2023-07-25 02:29:39 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2023-07-25 02:33:34 +0200 |
commit | f6b418af167bd55f165dcdddb686edf694d25e60 (patch) | |
tree | 2e47e555ab590f6a2889e5a6d7a455f6727caab3 /src/modules/packages.js | |
parent | 83a732b810b7ace13d64d429de309ba1908e187e (diff) | |
download | Viper-f6b418af167bd55f165dcdddb686edf694d25e60.tar.gz Viper-f6b418af167bd55f165dcdddb686edf694d25e60.zip |
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.
Diffstat (limited to 'src/modules/packages.js')
-rw-r--r-- | src/modules/packages.js | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |