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 874971389E2 for ; Mon, 15 Dec 2014 16:28:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C0FBBE09EC; Mon, 15 Dec 2014 16:28:42 +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 F0EC4E09B3 for ; Mon, 15 Dec 2014 16:28:41 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EDE73340596 for ; Mon, 15 Dec 2014 16:28:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 94A93C7E3 for ; Mon, 15 Dec 2014 16:28:39 +0000 (UTC) From: "Arfrever Frehtes Taifersar Arahesis" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arfrever Frehtes Taifersar Arahesis" Message-ID: <1418660896.d7c0bd69cc7d4ac9b1b45f1b30e07019bd716bd6.arfrever@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/actions.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: arfrever X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis X-VCS-Revision: d7c0bd69cc7d4ac9b1b45f1b30e07019bd716bd6 X-VCS-Branch: master Date: Mon, 15 Dec 2014 16:28:39 +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: e76d5355-1cfb-461d-a729-4d60e9831937 X-Archives-Hash: e9d26ce71661f7c72385563756300c88 commit: d7c0bd69cc7d4ac9b1b45f1b30e07019bd716bd6 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Mon Dec 15 16:28:16 2014 +0000 Commit: Arfrever Frehtes Taifersar Arahesis apache org> CommitDate: Mon Dec 15 16:28:16 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d7c0bd69 emerge --info: Check metadata/timestamp.chk in all repositories. 1 use of deprecated PORTDIR has been deleted. --- pym/_emerge/actions.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index 8050f61..d393c78 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1452,6 +1452,7 @@ def action_info(settings, trees, myopts, myfiles): vardb = trees[eroot]["vartree"].dbapi portdb = trees[eroot]['porttree'].dbapi bindb = trees[eroot]["bintree"].dbapi + repos = portdb.settings.repositories for x in myfiles: any_match = False cp_exists = bool(vardb.match(x.cp)) @@ -1554,13 +1555,10 @@ def action_info(settings, trees, myopts, myfiles): line += ",%10d free" % (vm_info["swap.free"] // 1024,) append(line) - lastSync = portage.grabfile(os.path.join( - settings["PORTDIR"], "metadata", "timestamp.chk")) - if lastSync: - lastSync = lastSync[0] - else: - lastSync = "Unknown" - append("Timestamp of tree: %s" % (lastSync,)) + for repo in repos: + last_sync = portage.grabfile(os.path.join(repo.location, "metadata", "timestamp.chk")) + if last_sync: + append("Timestamp of repository %s: %s" % (repo.name, last_sync[0])) # Searching contents for the /bin/sh provider is somewhat # slow. Therefore, use the basename of the symlink target @@ -1707,7 +1705,6 @@ def action_info(settings, trees, myopts, myfiles): append("%s %s" % \ ((cp + ":").ljust(cp_max_len + 1), versions)) - repos = portdb.settings.repositories append("Repositories:\n") for repo in repos: append(repo.info_string())