Sophie

Sophie

distrib > Mageia > 8 > i586 > by-pkgid > cb752d50298f4962c58c69676dab7f27 > scriptlet

espeak-1.48.04-4.mga8.i586.rpm

PRETRANS

<lua>
-- # (cg) espeak 1.47.11 changed a previous versions folder to a file causing cpio
-- # errors on upgrade - this will still cause problems
-- # (ngompa) Converted to Lua
-- # See: https://fedoraproject.org/wiki/User:Patches/PackagingDrafts/Symlink_Workarounds
path = "/usr/share/espeak-data/voices/en"
st = posix.stat(path)
if st and st.type == "directory" then
  os.execute("rm -rf " .. path)
end