actions.py 921 B

1234567891011121314151617181920212223242526272829303132
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import pythonmodules
  10. def build():
  11. pythonmodules.compile()
  12. def install():
  13. pythonmodules.install("--install-lib=/usr/lib/pisilinux")
  14. pisitools.dosym("pisi-cli", "/usr/bin/pisi")
  15. shelltools.touch("LOCK")
  16. shelltools.chmod("LOCK", 0o666)
  17. pisitools.dodir("/run/lock/files.ldb")
  18. pisitools.insinto("/run/lock/files.ldb", "LOCK")
  19. pisitools.dodir("/var/lib/pisi/info/files.ldb")
  20. pisitools.dosym("/run/lock/files.ldb/LOCK", "/var/lib/pisi/info/files.ldb/LOCK")
  21. # we need it temporary
  22. pisitools.dodir("/usr/lib/pardus")
  23. pisitools.dosym("/usr/lib/pisilinux/pisi", "/usr/lib/pardus/pisi")