summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/utils.py')
-rw-r--r--meta/lib/oe/utils.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index ed9409613a..ec8260d9bd 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -1,3 +1,10 @@
1try:
2 # Python 2
3 import commands as cmdstatus
4except ImportError:
5 # Python 3
6 import subprocess as cmdstatus
7
1def read_file(filename): 8def read_file(filename):
2 try: 9 try:
3 f = file( filename, "r" ) 10 f = file( filename, "r" )
@@ -123,3 +130,6 @@ def packages_filter_out_system(d):
123 if pkg not in blacklist and localepkg not in pkg: 130 if pkg not in blacklist and localepkg not in pkg:
124 pkgs.append(pkg) 131 pkgs.append(pkg)
125 return pkgs 132 return pkgs
133
134def getstatusoutput(cmd):
135 return cmdstatus.getstatusoutput(cmd)