actions.py 632 B

123456789101112131415
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import shelltools
  8. def install():
  9. shelltools.system("DESTDIR=%s appstream-util install pisi-1.xml.gz pisi-1-icons.tar.gz" % get.installDIR())
  10. shelltools.system("chmod 00755 %s/usr/share/app-info/xmls" % get.installDIR())
  11. shelltools.system("chmod 00644 %s/usr/share/app-info/xmls/pisi-1.xml.gz" % get.installDIR())
  12. shelltools.system("ln -sv pisi-1 '%s/usr/share/app-info/icons/pisi'" % get.installDIR())