diff --git a/package/gluon-legacy/files/lib/gluon/legacy/legacy-upgrade b/package/gluon-legacy/files/lib/gluon/legacy/legacy-upgrade index 8ff8c495..27517604 100755 --- a/package/gluon-legacy/files/lib/gluon/legacy/legacy-upgrade +++ b/package/gluon-legacy/files/lib/gluon/legacy/legacy-upgrade @@ -4,7 +4,7 @@ local site = require 'gluon.site_config' local ret = 1 -for _, file in pairs(site.legacy.version_files) do +for _, file in ipairs(site.legacy.version_files) do if os.remove(file) then ret = 0 end diff --git a/package/gluon-legacy/files/lib/gluon/legacy/legacy-upgrade-late b/package/gluon-legacy/files/lib/gluon/legacy/legacy-upgrade-late index 08763a09..1e79d821 100755 --- a/package/gluon-legacy/files/lib/gluon/legacy/legacy-upgrade-late +++ b/package/gluon-legacy/files/lib/gluon/legacy/legacy-upgrade-late @@ -3,6 +3,6 @@ local site = require 'gluon.site_config' -for _, file in pairs(site.legacy.old_files) do +for _, file in ipairs(site.legacy.old_files) do os.remove(file) end