filesystems pretrans does not work with rpm5?

Lukasz Kies kiesiu at pld-linux.org
Thu Sep 27 08:24:09 CEST 2012


Hi,

filesystem's %pretrans script looks like doesn't work with rpm5. Has
something changed in our macros or somewhere else?

Error message:
error: Lua script failed: [string
"%pretrans(filesystem-4.0-13.x86_64)"]:2: attempt to index global
'posix' (a nil value)

pretrans:
%pretrans -p <lua>
-- this needs to be a dir
if posix.stat("/usr/include/X11", "type") == "link" then
    -- feel free to write in pure lua, but success on first install is
not important.
    os.execute("umask 022; mv -f /usr/include/X11{,.rpmsave}; mkdir
-m755 -p /usr/include/X11 && mv -f /usr/include/X11.rpmsave/*
/usr/include/X11")
end

-- 
Regards,
Lukasz


More information about the pld-devel-en mailing list