diff options
Diffstat (limited to 'scripts/lib/bsp/kernel.py')
| -rw-r--r-- | scripts/lib/bsp/kernel.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/bsp/kernel.py b/scripts/lib/bsp/kernel.py index 8b3aa72c9c..7c6da4e2eb 100644 --- a/scripts/lib/bsp/kernel.py +++ b/scripts/lib/bsp/kernel.py | |||
| @@ -31,6 +31,7 @@ import os | |||
| 31 | import shutil | 31 | import shutil |
| 32 | from tags import * | 32 | from tags import * |
| 33 | import glob | 33 | import glob |
| 34 | import subprocess | ||
| 34 | 35 | ||
| 35 | 36 | ||
| 36 | def find_bblayers(scripts_path): | 37 | def find_bblayers(scripts_path): |
| @@ -678,7 +679,7 @@ def base_branches(context): | |||
| 678 | print "Getting branches from remote repo %s..." % giturl | 679 | print "Getting branches from remote repo %s..." % giturl |
| 679 | 680 | ||
| 680 | gitcmd = "git ls-remote %s *heads* 2>&1" % (giturl) | 681 | gitcmd = "git ls-remote %s *heads* 2>&1" % (giturl) |
| 681 | tmp = os.popen(gitcmd).read() | 682 | tmp = subprocess.Popen(gitcmd, shell=True, stdout=subprocess.PIPE).stdout.read() |
| 682 | 683 | ||
| 683 | branches = [] | 684 | branches = [] |
| 684 | 685 | ||
| @@ -708,7 +709,7 @@ def all_branches(context): | |||
| 708 | print "Getting branches from remote repo %s..." % giturl | 709 | print "Getting branches from remote repo %s..." % giturl |
| 709 | 710 | ||
| 710 | gitcmd = "git ls-remote %s *heads* 2>&1" % (giturl) | 711 | gitcmd = "git ls-remote %s *heads* 2>&1" % (giturl) |
| 711 | tmp = os.popen(gitcmd).read() | 712 | tmp = subprocess.Popen(gitcmd, shell=True, stdout=subprocess.PIPE).stdout.read() |
| 712 | 713 | ||
| 713 | branches = [] | 714 | branches = [] |
| 714 | 715 | ||
