Advertisement
Guest User

Untitled

a guest
May 20th, 2022
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import subprocess
  2. import os
  3.  
  4. trepo = "nemo:testing:hw:{0}:{1}".format(os.environ["VENDOR"],os.environ["DEVICE"])
  5. drepo = "nemo:devel:hw:{0}:{1}".format(os.environ["VENDOR"],os.environ["DEVICE"])
  6.  
  7. cmd = "osc ls {0}".format(drepo)
  8. process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, text=True)
  9. packages = process.communicate()[0]
  10.  
  11. for p in packages.split('\n'):
  12. p = p.strip()
  13. if p == '' or p[0] == '#' or p == "_pattern":
  14. continue
  15. print("osc -A https://build.sailfishos.org copypac {0} {1} {2}".format(drepo,p,trepo))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement