actions.py 424 B

123456789101112131415
  1. #!/usr/bin/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, pisitools, shelltools
  7. def setup():
  8. shelltools.system("unzip platform-tools_r26.0.2-linux.zip")
  9. def install():
  10. pisitools.insinto("/usr/bin/", "platform-tools/adb")
  11. pisitools.insinto("/usr/bin/", "platform-tools/fastboot")