Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-updates > by-pkgid > df143d66cbfd46356c3d28dcd7e6bbba > scriptlet

thunderbird-60.6.1-1.mga6.x86_64.rpm

PRETRANS

<lua>
-- Define the path to directory being replaced below.
-- DO NOT add a trailing slash at the end.
path = "/usr/lib64/thunderbird/dictionaries"
st = posix.stat(path)
if st and st.type == "directory" then
  status = os.rename(path, path .. ".rpmmoved")
  if not status then
    suffix = 0
    while not status do
      suffix = suffix + 1
      status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
    end
    os.rename(path, path .. ".rpmmoved")
  end
end