Package gajim: Скрипты

Pre trans

-- see http://git.altlinux.org/gears/e/example-pretrans-dir-to-symlink.git
-- Define the path to directory being replaced below.
-- DO NOT add a trailing slash at the end.
path = "/usr/lib/python3/site-packages/gajim/data"
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