From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SNw5p-0000UL-BN for garchives@archives.gentoo.org; Sat, 28 Apr 2012 01:05:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D1EDE0769; Sat, 28 Apr 2012 01:04:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2AB30E0769 for ; Sat, 28 Apr 2012 01:04:45 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 939A41B402E for ; Sat, 28 Apr 2012 01:04:44 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5EAD4E5402 for ; Sat, 28 Apr 2012 01:04:43 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1335575073.b2f757cb0f6bb873fe7c6cdeeee043eec922c891.zorry@gentoo> Subject: [gentoo-commits] dev/zorry:master commit in: gobs/bin/ X-VCS-Repository: dev/zorry X-VCS-Files: gobs/bin/gobs_updatedb X-VCS-Directories: gobs/bin/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: b2f757cb0f6bb873fe7c6cdeeee043eec922c891 X-VCS-Branch: master Date: Sat, 28 Apr 2012 01:04:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 4bca5f5b-2f6d-4744-9da1-247f49768c53 X-Archives-Hash: a132acd6a394257ca8ae16be08403383 commit: b2f757cb0f6bb873fe7c6cdeeee043eec922c891 Author: Magnus Granberg gentoo org> AuthorDate: Sat Apr 28 01:04:33 2012 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Sat Apr 28 01:04:33 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/zorry.git;a=3D= commit;h=3Db2f757cb fix the multiprocessing code --- gobs/bin/gobs_updatedb | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/gobs/bin/gobs_updatedb b/gobs/bin/gobs_updatedb index d162ff2..12d33c0 100755 --- a/gobs/bin/gobs_updatedb +++ b/gobs/bin/gobs_updatedb @@ -97,11 +97,14 @@ def update_cpv_db(mysettings): package_list_tree =3D myportdb.cp_all() # Use all exept 2 cores when multiprocessing pool_cores=3D multiprocessing.cpu_count() + print "pool_cores", pool_cores if pool_cores > "3": use_pool_cores =3D pool_cores - 2 else: use_pool_cores =3D 1 + print "use_pool_cores", use_pool_cores pool =3D multiprocessing.Pool(processes=3Duse_pool_cores) + sys.exit() # Run the update package for all package in the list in # a multiprocessing pool for package_line in sorted(package_list_tree): @@ -123,7 +126,6 @@ def main(): mysettings =3D init_portage_settings() init_arch =3D gobs_arch() init_arch.update_arch_db() - sys.exit() # Update the cpv db update_cpv_db(mysettings) CM.closeAllConnections()