Skip to content

Commit 8964b59

Browse files
committed
Updater: compare DepCtrl class names instead of classes to prevent a DepCtrl-self-update from being detected as an unmanaged module
1 parent 51d4131 commit 8964b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/DependencyControl/Updater.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class UpdateTask extends UpdaterBase
344344
else return finish -55
345345

346346
-- get a fresh version record
347-
if type(ref.version) == "table" and ref.version.__class == DependencyControl
347+
if type(ref.version) == "table" and ref.version.__class.__name == DependencyControl.__name
348348
@record = ref.version
349349
else
350350
return finish -57 unless ref.version

0 commit comments

Comments
 (0)