aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-07-25 02:29:39 +0200
committer0neGal <mail@0negal.com>2023-07-25 02:33:34 +0200
commitf6b418af167bd55f165dcdddb686edf694d25e60 (patch)
tree2e47e555ab590f6a2889e5a6d7a455f6727caab3 /src
parent83a732b810b7ace13d64d429de309ba1908e187e (diff)
downloadViper-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')
-rw-r--r--src/modules/packages.js4
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;
}