aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/js/browser.js')
-rw-r--r--src/app/js/browser.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/app/js/browser.js b/src/app/js/browser.js
index ec5013a..fcbdc4f 100644
--- a/src/app/js/browser.js
+++ b/src/app/js/browser.js
@@ -136,12 +136,18 @@ var Browser = {
for (let ii = 0; ii < modsobj.all.length; ii++) {
let mod = modsobj.all[ii];
- if (normalize(mod.name) === normalized) {
- local_name = mod.name;
- local_version = version.format(mod.version);
- if (version.is_newer(remote_version, local_version)) {
- has_update = true;
- }
+ if (normalize(mod.name) !== normalized && (
+ ! mod.package ||
+ mod.package.author + "-" + mod.package.package_name !==
+ packages[i].full_name
+ )) {
+ continue;
+ }
+
+ local_name = mod.name;
+ local_version = version.format(mod.version);
+ if (version.is_newer(remote_version, local_version)) {
+ has_update = true;
}
}
}