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 1SO6u5-0007VM-VN for garchives@archives.gentoo.org; Sat, 28 Apr 2012 12:37:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E0A4E06C1; Sat, 28 Apr 2012 12:37:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id D5A5DE06C1 for ; Sat, 28 Apr 2012 12:37:26 +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 46BD81B4011 for ; Sat, 28 Apr 2012 12:37:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 05185E5402 for ; Sat, 28 Apr 2012 12:37:24 +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: <1335616621.d00fd39f3d62d4fa00ed1a3c98d72a6f52872123.zorry@gentoo> Subject: [gentoo-commits] dev/zorry:master commit in: gobs/pym/ X-VCS-Repository: dev/zorry X-VCS-Files: gobs/pym/old_cpv.py X-VCS-Directories: gobs/pym/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: d00fd39f3d62d4fa00ed1a3c98d72a6f52872123 X-VCS-Branch: master Date: Sat, 28 Apr 2012 12:37:24 +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: e2f96004-0f9f-483c-96b4-4491fa269d5f X-Archives-Hash: 843173f210bb4c7e1e9999dac5153187 commit: d00fd39f3d62d4fa00ed1a3c98d72a6f52872123 Author: Magnus Granberg gentoo org> AuthorDate: Sat Apr 28 12:37:01 2012 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Sat Apr 28 12:37:01 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/zorry.git;a=3D= commit;h=3Dd00fd39f Add logging old_cpv.py --- gobs/pym/old_cpv.py | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gobs/pym/old_cpv.py b/gobs/pym/old_cpv.py index 2fa1fab..93af29f 100644 --- a/gobs/pym/old_cpv.py +++ b/gobs/pym/old_cpv.py @@ -1,4 +1,5 @@ from __future__ import print_function +import logging from gobs.readconf import get_conf_settings reader=3Dget_conf_settings() gobs_settings_dict=3Dreader.read_gobs_settings_all() @@ -30,14 +31,14 @@ class gobs_old_cpv(object): # Set no active on ebuilds in the db that no longer in tree if old_ebuild_list !=3D []: for old_ebuild in old_ebuild_list: - print("O", categories + "/" + package + "-" + old_ebuild[0]) + logging.info("O %s/%s-%s", categories, package, old_ebuild[0]) add_old_ebuild(conn,package_id, old_ebuild_list) # Check if we have older no activ ebuilds then 60 days ebuild_old_list_db =3D cp_list_old_db(conn,package_id) # Delete older ebuilds in the db if ebuild_old_list_db !=3D []: for del_ebuild_old in ebuild_old_list_db: - print("D", categories + "/" + package + "-" + del_ebuild_old[1]) + logging.info("D %s/%s-%s", categories, package, del_ebuild_old[1]) del_old_ebuild(conn,ebuild_old_list_db) CM.putConnection(conn) =20 @@ -57,14 +58,14 @@ class gobs_old_cpv(object): if mark_old_list !=3D []: for x in mark_old_list: element =3D get_cp_from_package_id(conn,x) - print("O", element[0]) + logging.info("O %s", element[0]) # Check if we have older no activ categories/package then 60 days del_package_id_old_list =3D cp_all_old_db(conn,old_package_id_list) # Delete older categories/package and ebuilds in the db if del_package_id_old_list !=3D []: for i in del_package_id_old_list: element =3D get_cp_from_package_id(conn,i) - print("D", element) + logging.info("D %s", element) del_old_package(conn,del_package_id_old_list) CM.putConnection(conn) =09 @@ -85,5 +86,5 @@ class gobs_old_cpv(object): if categories_old_list !=3D []: for real_old_categories in categories_old_list: del_old_categories(conn,real_old_categoriess) - print("D", real_old_categories) + logging.info("D %s", real_old_categories) CM.putConnection(conn) \ No newline at end of file