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 1SNwrN-0006Bw-9c for garchives@archives.gentoo.org; Sat, 28 Apr 2012 01:54:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 814A8E0829; Sat, 28 Apr 2012 01:53:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 38879E0829 for ; Sat, 28 Apr 2012 01:53:53 +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 9B4CA643ED for ; Sat, 28 Apr 2012 01:53:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 33771E5402 for ; Sat, 28 Apr 2012 01:53:50 +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: <1335578018.43c6d1e973c9ba99452e3dca57482741b8459a6f.zorry@gentoo> Subject: [gentoo-commits] dev/zorry:master commit in: gobs/pym/ X-VCS-Repository: dev/zorry X-VCS-Files: gobs/pym/package.py X-VCS-Directories: gobs/pym/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: 43c6d1e973c9ba99452e3dca57482741b8459a6f X-VCS-Branch: master Date: Sat, 28 Apr 2012 01:53:50 +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: 9cdc2379-2287-4dfe-b8fd-fb03622252ff X-Archives-Hash: 5d0bff5271eee269ff438848724be379 commit: 43c6d1e973c9ba99452e3dca57482741b8459a6f Author: Magnus Granberg gentoo org> AuthorDate: Sat Apr 28 01:53:38 2012 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Sat Apr 28 01:53:38 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/zorry.git;a=3D= commit;h=3D43c6d1e9 Add logging package.py part2 --- gobs/pym/package.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gobs/pym/package.py b/gobs/pym/package.py index f4aa1de..d6b4eb8 100644 --- a/gobs/pym/package.py +++ b/gobs/pym/package.py @@ -89,6 +89,7 @@ class gobs_package(object): # ebuild_version_metadata_tree and set ebuild_version_checksum_tree to= 0 # so it can be updated next time we update the db if ebuild_version_metadata_tree =3D=3D []: + logging.info(" QA: %s Have broken metadata", ebuild_line) ebuild_version_metadata_tree =3D ['','','','','','','','','','','',''= ,'','','','','','','','','','','','',''] ebuild_version_checksum_tree =3D ['0'] # add the ebuild to the dict packages @@ -155,7 +156,8 @@ class gobs_package(object): # Comper ebuild_version and add the ebuild_version to buildqueue if portage.vercmp(v['ebuild_version_tree'], latest_ebuild_version) = =3D=3D 0: add_new_package_buildqueue(conn,ebuild_id, config_id, use_flags_li= st, use_enable_list, message) - print("B", config_id, v['categories'] + "/" + v['package'] + "-" = + latest_ebuild_version, "USE:", use_enable) # B =3D Build config cpv use= -flags + logging.info("B %s/%s-%s USE: %s %s", v['categories'], v['package'= ], \ + latest_ebuild_version, use_enable, config_id) # B =3D Build cpv u= se-flags config i =3D i +1 CM.putConnection(conn) =20 @@ -207,7 +209,7 @@ class gobs_package(object): manifest_error =3D init_manifest.digestcheck() if manifest_error is not None: qa_error.append(manifest_error) - print("QA:", categories + "/" + package, qa_error) + logging.info("QA: %s/%s %s", categories, package, qa_error) add_qa_repoman(conn,ebuild_id_list, qa_error, packageDict, config_id) # Add the ebuild to the buildqueru table if needed self.add_new_ebuild_buildquery_db(ebuild_id_list, packageDict, config= _cpv_listDict) @@ -275,7 +277,7 @@ class gobs_package(object): manifest_error =3D init_manifest.digestcheck() if manifest_error is not None: qa_error.append(manifest_error) - print("QA:", categories + "/" + package, qa_error) + logging.info("QA: %s/%s %s", categories, package, qa_error) add_qa_repoman(conn,ebuild_id_list, qa_error, packageDict, config_id) # Add the ebuild to the buildqueru table if needed self.add_new_ebuild_buildquery_db(ebuild_id_list, packageDict, config= _cpv_listDict) @@ -303,5 +305,4 @@ class gobs_package(object): add_old_ebuild(conn,package_id, old_ebuild_list) update_active_ebuild(conn,package_id, ebuild_version_tree) return_id =3D add_new_package_sql(conn,packageDict) - print('return_id', return_id) CM.putConnection(conn) \ No newline at end of file