aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2023-07-24 18:27:49 +0200
committer0neGal <mail@0negal.com>2023-07-24 18:27:49 +0200
commit116fceaed48b4aace01290cee3ddfa007b2550f5 (patch)
tree65bce1f3f480529fa2ee2a833bd08b95b4e240be
parent3b3173e0454605c8181f037fff49c7ab8a353cf8 (diff)
downloadViper-116fceaed48b4aace01290cee3ddfa007b2550f5.tar.gz
Viper-116fceaed48b4aace01290cee3ddfa007b2550f5.zip
fixed updating not removing older packages
-rw-r--r--src/modules/packages.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/packages.js b/src/modules/packages.js
index a20cb5a..d1ea46e 100644
--- a/src/modules/packages.js
+++ b/src/modules/packages.js
@@ -240,6 +240,7 @@ packages.install = async (url, author, package_name, version) => {
}
// removes older version of package inside the `packages` folder
+ packages.remove(author, package_name);
packages.remove(author, package_name, version);
console.info("Moving package:", name);