From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1B17C138E20 for ; Wed, 19 Feb 2014 05:01:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB1A0E0A60; Wed, 19 Feb 2014 05:01:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68154E0A60 for ; Wed, 19 Feb 2014 05:01:08 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4448F33F958 for ; Wed, 19 Feb 2014 05:01:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id B9F821872B for ; Wed, 19 Feb 2014 05:01:04 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1392785784.e39db54a6071281d71084579995e1fe34846c72d.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/revdep_rebuild/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/revdep_rebuild/rebuild.py X-VCS-Directories: pym/gentoolkit/revdep_rebuild/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: e39db54a6071281d71084579995e1fe34846c72d X-VCS-Branch: gentoolkit Date: Wed, 19 Feb 2014 05:01:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 66c09708-c065-4077-be79-c08398e7e876 X-Archives-Hash: 987c1278a0d30829f1ccadda95bc1e83 commit: e39db54a6071281d71084579995e1fe34846c72d Author: Brian Dolbec gentoo org> AuthorDate: Wed Feb 19 04:56:24 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Wed Feb 19 04:56:24 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=e39db54a revdep_rebuild/rebuild.py: Migrate an os.system() call to subprocess.call() --- pym/gentoolkit/revdep_rebuild/rebuild.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pym/gentoolkit/revdep_rebuild/rebuild.py b/pym/gentoolkit/revdep_rebuild/rebuild.py index c487b99..0725c7c 100644 --- a/pym/gentoolkit/revdep_rebuild/rebuild.py +++ b/pym/gentoolkit/revdep_rebuild/rebuild.py @@ -20,6 +20,7 @@ import os import sys import getopt import logging +import subprocess import time current_milli_time = lambda: int(round(time.time() * 1000)) @@ -171,10 +172,9 @@ def rebuild(logger, assigned, settings): bold(emerge_command)) stime = current_milli_time() - success = os.system( - 'emerge ' + args + - ' --oneshot --complete-graph=y ' + - emerge_command) + _args = 'emerge ' + args + ' --oneshot --complete-graph=y ' + emerge_command + _args = _args.split() + success = subprocess.call(_args) ftime = current_milli_time() logger.debug("\trebuild(); emerge call for %d ebuilds took: %s seconds" % (len(_assigned), str((ftime-stime)/1000.0)))