[yocto] [opkg-utils][PATCH 2/2] Changed call to subprocess.check_output which isn't compatible with Python 2.6
Martin Jansa
martin.jansa at gmail.com
Tue May 29 08:34:15 PDT 2012
From: Chris Diamand <chris at diamand.org>
subprocess.check_output is not present in Python 2.6. Since the return value
is not being used anyway, replace it with subprocess.call(), which is.
Signed-off-by: Chris Diamand <chris at diamand.org>
---
opkg-make-index | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opkg-make-index b/opkg-make-index
index 22393e8..1c3a8e1 100755
--- a/opkg-make-index
+++ b/opkg-make-index
@@ -186,7 +186,7 @@ if packages_filename:
gzip_filename = ("%s.gz" % packages_filename)
tmp_gzip_filename = ("%s.%d" % (gzip_filename, os.getpid()))
gzip_cmd = "gzip -9c < %s > %s" % (tmp_packages_filename, tmp_gzip_filename)
- rc = subprocess.check_output(gzip_cmd, shell=True)
+ subprocess.call(gzip_cmd, shell=True)
os.rename(tmp_packages_filename, packages_filename)
os.rename(tmp_gzip_filename, gzip_filename)
--
1.7.8.6
More information about the yocto
mailing list