32 lines
1,003 B
Text
32 lines
1,003 B
Text
$NetBSD: patch-af,v 1.3 2006/08/14 22:40:53 wiz Exp $
|
|
|
|
--- menu/menulib.lua.orig 2004-01-14 22:43:49.000000000 +0000
|
|
+++ menu/menulib.lua
|
|
@@ -9,10 +9,10 @@
|
|
-- (at your option) any later version.
|
|
--
|
|
|
|
--- This is a slight abuse of the _LOADED variable perhaps, but library-like
|
|
+-- This is a slight abuse of the package.loaded variable perhaps, but library-like
|
|
-- packages should handle checking if they're loaded instead of confusing
|
|
-- the user with require/include differences.
|
|
-if _LOADED["menulib"] then return end
|
|
+if package.loaded["menulib"] then return end
|
|
|
|
|
|
-- Table to hold defined menus.
|
|
@@ -239,7 +239,7 @@ local function refresh_styles()
|
|
if table.getn(dirs)==0 then
|
|
return
|
|
end
|
|
- for _, s in dirs do
|
|
+ for _, s in pairs(dirs) do
|
|
cmd=cmd.." "..string.shell_safe(s.."/look-")
|
|
end
|
|
|
|
@@ -254,4 +254,4 @@ refresh_styles()
|
|
|
|
|
|
-- Mark ourselves loaded.
|
|
-_LOADED["menulib"]=true
|
|
+package.loaded["menulib"]=true
|