head 1.2; access; symbols pkgsrc-2013Q4:1.1.0.64 pkgsrc-2013Q4-base:1.1 pkgsrc-2013Q3:1.1.0.62 pkgsrc-2013Q3-base:1.1 pkgsrc-2013Q2:1.1.0.60 pkgsrc-2013Q2-base:1.1 pkgsrc-2013Q1:1.1.0.58 pkgsrc-2013Q1-base:1.1 pkgsrc-2012Q4:1.1.0.56 pkgsrc-2012Q4-base:1.1 pkgsrc-2012Q3:1.1.0.54 pkgsrc-2012Q3-base:1.1 pkgsrc-2012Q2:1.1.0.52 pkgsrc-2012Q2-base:1.1 pkgsrc-2012Q1:1.1.0.50 pkgsrc-2012Q1-base:1.1 pkgsrc-2011Q4:1.1.0.48 pkgsrc-2011Q4-base:1.1 pkgsrc-2011Q3:1.1.0.46 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.44 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.42 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.40 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.38 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.36 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.34 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.32 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.30 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.28 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.26 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.24 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.22 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.20 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.18 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.16 pkgsrc-2008Q1:1.1.0.14 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.12 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.10 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.8 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.6 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.4 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.2 pkgsrc-2006Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2013.12.31.17.08.11; author wiz; state dead; branches; next 1.1; commitid Vb57LsqOW5rN8jjx; 1.1 date 2006.08.14.22.40.53; author wiz; state Exp; branches; next ; desc @@ 1.2 log @Remove packages that were either BROKEN for more than a year or BROKEN and explicitly scheduled to be removed after 2013Q4. @ text @$NetBSD: patch-am,v 1.1 2006/08/14 22:40:53 wiz Exp $ --- share/ioncorelib.lua.orig 2004-02-16 17:58:47.000000000 +0000 +++ share/ioncorelib.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["ioncorelib"] then return end +if package.loaded["ioncorelib"] then return end -- Constants {{{ @@@@ -162,9 +162,9 @@@@ local winprops={} local function alternative_winprop_idents(id) local function g() - for _, c in {id.class, "*"} do - for _, r in {id.role, "*"} do - for _, i in {id.instance, "*"} do + for _, c in pairs({id.class, "*"}) do + for _, r in pairs({id.role, "*"}) do + for _, i in pairs({id.instance, "*"}) do coroutine.yield(c, r, i) end end @@@@ -183,7 +183,7 @@@@ function get_winprop(cwin) names={} pcall(function() names=winprops[c][r][i] or {} end) local match, matchl=names[0], 0 - for name, prop in names do + for name, prop in pairs(names) do if type(name)=="string" then local st, en=string.find(nm, name) if st and en then @@@@ -223,7 +223,7 @@@@ end function winprop(list) local list2, class, role, instance, name = {}, "*", "*", "*", 0 - for k, v in list do + for k, v in pairs(list) do if k == "class" then class = v elseif k == "role" then @@@@ -328,5 +328,5 @@@@ end -- Mark ourselves loaded. -_LOADED["ioncorelib"]=true +package.loaded["ioncorelib"]=true @ 1.1 log @Adapt to lua-5.1.1. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @