Skip to content

replace os.system/popen with subprocess module

Robert Yang openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4meta: replace os.system with subprocess.callmeta/classes/archiver.bbclass meta/classes/distrodata.bbclass meta/classes/imagetest-qemu.bbclass +11 more+74 -520 replies
2/4scripts: replace os.system with subprocess.callscripts/rpm-createsolvedb.py scripts/swabber-strace-attach+5 -30 replies
3/4meta: replace os.popen with subprocess.Popenmeta/classes/debian.bbclass meta/classes/distrodata.bbclass meta/classes/icecc.bbclass +5 more+55 -390 replies
4/4scripts: replace os.popen with subprocess.Popenscripts/contrib/python/generate-manifest-2.7.py+2 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] replace os.system/popen with subprocess module

These patches are based on oe-core.

* Testinfo
1) $ bitbake core-image-sato core-image-sato-sdk metatoolchain-sdk with MACHINE=qemuarm, PACKAGE_CLASSES = "package_rpm"

2) $ bitbake core-image-sato core-image-sato-sdk metatoolchain-sdk with MACHINE=qemuarm, PACKAGE_CLASSES = "package_ipk"

3) $ bitbake core-image-sato with MACHINE=qemux86, PACKAGE_CLASSES = "package_deb"

4) $ bitbake world with MACHINE=qemux86

// Robert

The following changes since commit a7532d6b2870a51079c39366def9ae55faeba626:

rootfs_rpm.bbclass: save rpmlib rather than remove it (2012-05-29 22:36:39 +0800)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib robert/meta_subprocess
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/meta_subprocess

Robert Yang (4):
meta: replace os.system with subprocess.call
scripts: replace os.system with subprocess.call
meta: replace os.popen with subprocess.Popen
scripts: replace os.popen with subprocess.Popen

 meta/classes/archiver.bbclass                   |    3 +-
 meta/classes/debian.bbclass                     |   12 ++++--
 meta/classes/distrodata.bbclass                 |   17 ++++----
 meta/classes/icecc.bbclass                      |    6 +-
 meta/classes/imagetest-qemu.bbclass             |    9 ++--
 meta/classes/insane.bbclass                     |   46 ++++++++++++++-------
 meta/classes/kernel.bbclass                     |    6 +-
 meta/classes/metadata_scm.bbclass               |   12 ++---
 meta/classes/package.bbclass                    |   49 ++++++++++++----------
 meta/classes/package_deb.bbclass                |    3 +-
 meta/classes/package_ipk.bbclass                |   13 ++++--
 meta/classes/package_tar.bbclass                |    6 ++-
 meta/classes/sanity.bbclass                     |   13 +++---
 meta/classes/sstate.bbclass                     |    9 +++-
 meta/lib/oe/distro_check.py                     |    3 +-
 meta/recipes-core/busybox/busybox.inc           |    3 +-
 meta/recipes-core/uclibc/uclibc.inc             |    7 ++-
 meta/recipes-extended/cups/cups14.inc           |    3 +-
 scripts/contrib/python/generate-manifest-2.7.py |    3 +-
 scripts/rpm-createsolvedb.py                    |    5 +-
 scripts/swabber-strace-attach                   |    3 +-
 21 files changed, 136 insertions(+), 95 deletions(-)