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 046A21389E2 for ; Sun, 14 Dec 2014 07:21:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 483D2E0957; Sun, 14 Dec 2014 07:21:46 +0000 (UTC) Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D3869E0DDA for ; Sun, 14 Dec 2014 07:21:44 +0000 (UTC) Received: by mail-wi0-f171.google.com with SMTP id bs8so6072609wib.10 for ; Sat, 13 Dec 2014 23:21:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; bh=pOu6ecyVRvpa0ENbrG4x9LHXj/oo+L3u6UObMHmusEI=; b=PREv9ycz/3BKDDJA+sr8iPBb2cOPcEAYqykgpknv/GvGu2rE5Km2D2d7CI2bGx4w9U QK2L0aODIrf6tOyyvvX/HwYWJPyjUtvyIfsJwxYTOnj3FuprwpcPHr+eoxJcfiBzYaae PAb1Z6SZ80H2JDY8Ud88PgNAoMsIvQhZn4svDL6W5V0Wd8GBGC45V8VCck3SHbzgrW/O Hd4rtIpnv6qHzvcvyMmdzsk1Zr+tffQW9kzi2ahRNnROn4RgacP3CA5ZLvDlMHxVx84M 9Fa+N7BNsFtwt7sv0lX7MX7cbf4qJ8YEClYNv/9aIG6zgi5UCXF6WEeDlmRLc8Cp1LZN LGkw== X-Received: by 10.180.74.208 with SMTP id w16mr21242435wiv.2.1418541703543; Sat, 13 Dec 2014 23:21:43 -0800 (PST) Received: from afta-picea.localnet (host-94-251-141-202.dynamic.mm.pl. [94.251.141.202]) by mx.google.com with ESMTPSA id ly9sm8171093wjb.24.2014.12.13.23.21.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 13 Dec 2014 23:21:42 -0800 (PST) From: Arfrever Frehtes Taifersar Arahesis X-Google-Original-From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Portage Development Subject: Re: [gentoo-portage-dev] [PATCH] emerge --info: Check metadata/timestamp.chk in all repositories Date: Sun, 14 Dec 2014 08:21:24 +0100 User-Agent: KMail (GNU/Linux) References: <201412131833.04573.Arfrever.FTA@gmail.com> In-Reply-To: <201412131833.04573.Arfrever.FTA@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1698166.eIvgsdT41R"; protocol="application/pgp-signature"; micalg=pgp-sha512 Content-Transfer-Encoding: 7bit Message-Id: <201412140821.26387.Arfrever.FTA@gmail.com> X-Archives-Salt: aee2e25d-2b13-4702-8d5f-6c6a7a01c274 X-Archives-Hash: 42380897041f46c87c00546bb5487a25 --nextPart1698166.eIvgsdT41R Content-Type: multipart/mixed; boundary="Boundary-01=_1pTjU7FMCOnraMQ" Content-Transfer-Encoding: 7bit --Boundary-01=_1pTjU7FMCOnraMQ Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline New patch without os.path.isfile(). [[[ emerge --info: Check metadata/timestamp.chk in all repositories. 1 use of deprecated PORTDIR has been deleted. ]]] -- Arfrever Frehtes Taifersar Arahesis --Boundary-01=_1pTjU7FMCOnraMQ Content-Type: text/x-patch; charset="utf-8"; name="portage.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="portage.patch" =2D-- pym/_emerge/actions.py +++ pym/_emerge/actions.py @@ -1452,6 +1452,7 @@ vardb =3D trees[eroot]["vartree"].dbapi portdb =3D trees[eroot]['porttree'].dbapi bindb =3D trees[eroot]["bintree"].dbapi + repos =3D portdb.settings.repositories for x in myfiles: any_match =3D False cp_exists =3D bool(vardb.match(x.cp)) @@ -1554,13 +1555,10 @@ line +=3D ",%10d free" % (vm_info["swap.free"] // 1024,) append(line) =20 =2D lastSync =3D portage.grabfile(os.path.join( =2D settings["PORTDIR"], "metadata", "timestamp.chk")) =2D if lastSync: =2D lastSync =3D lastSync[0] =2D else: =2D lastSync =3D "Unknown" =2D append("Timestamp of tree: %s" % (lastSync,)) + for repo in repos: + last_sync =3D portage.grabfile(os.path.join(repo.location, "metadata", "= timestamp.chk")) + if last_sync: + append("Timestamp of repository %s: %s" % (repo.name, last_sync[0])) =20 # Searching contents for the /bin/sh provider is somewhat # slow. Therefore, use the basename of the symlink target @@ -1707,7 +1705,6 @@ append("%s %s" % \ ((cp + ":").ljust(cp_max_len + 1), versions)) =20 =2D repos =3D portdb.settings.repositories append("Repositories:\n") for repo in repos: append(repo.info_string()) --Boundary-01=_1pTjU7FMCOnraMQ-- --nextPart1698166.eIvgsdT41R Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJUjTp2AAoJEHgbAhhyXND8cPIQAIzuLVwsIqIIU2Xb4n8q4IBR 4cJLoat0oCnJQYj04QncVpvpyEVBYWusiu05Q1rKmp7N6e4eoDtHuKIiiPJe3B3w s+s4585vw0ZQPRrrWPgo048E/GoLLD/t61yjdzQjKHJ7PwnelsQOnpFrMMz4KWS0 fwSGK3E/B0JUmRL3y5ZHQTrbv8IoGGD9YZe0LPWVTBu++iSQb5cskiEOi7z6Accz 4kqcsVHCPwcMd8CHlOgRum6EVzQUg1S7WzaOfsKEA+8cIs2JsUXUluEBERwuytgp cW3ld5pEIzyHsQl1OTtIc2C6GJoSW9fty4HdKFkRQovUH4t2STq5AAoJMV9DHsCd luSurCN27SHDHJ7yIfQbnO528HDQSjfvzh0aMXGFDUpJRAcp1chLxQab6CZuMirP 5KiJSPeKZ/bxq9cT+sQsN5CAQsJpyHedSg823jaAV3R/R6GxZwj6YHKZ5ooe3/9W owk/dfCGJFvUUiaZ5z5NVhkqwvowHZ4UcwplXSUZ44cKdfJvANs34PBX/ATmgDxl AuNjlFHQZUrsX5+Qf7uY1IyPtqbgTarHZ9ihHc9dJ2s+2/W3P+GMffdTkvTGJ613 Blc3Wg8L1nkqomNhSsV2poh2YqnJE3PAVn/BiHQtvEAjbPlUNw9Zsq3tyyhCvjw+ 6Q1R7tTWsIHrUqvjb9/x =X8pk -----END PGP SIGNATURE----- --nextPart1698166.eIvgsdT41R--