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 1RmXuE-0003bH-Ot for garchives@archives.gentoo.org; Sun, 15 Jan 2012 21:46:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33CC0E062C; Sun, 15 Jan 2012 21:46:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E921BE062C for ; Sun, 15 Jan 2012 21:46:14 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 416381B4010 for ; Sun, 15 Jan 2012 21:46:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 6211B80042 for ; Sun, 15 Jan 2012 21:46:13 +0000 (UTC) From: "Arfrever Frehtes Taifersar Arahesis" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arfrever Frehtes Taifersar Arahesis" Message-ID: <99e5562e09a481a9d484302ad84c380bcf291efc.arfrever@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/portageq X-VCS-Directories: bin/ X-VCS-Committer: arfrever X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis X-VCS-Revision: 99e5562e09a481a9d484302ad84c380bcf291efc Date: Sun, 15 Jan 2012 21:46:13 +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: 85e3b89f-66ce-4373-957d-71fa44568734 X-Archives-Hash: 5ab76a4ffb06016e539eb4c85cbdb4ea commit: 99e5562e09a481a9d484302ad84c380bcf291efc Author: Arfrever Frehtes Taifersar Arahesis Gentoo Org> AuthorDate: Sun Jan 15 21:44:17 2012 +0000 Commit: Arfrever Frehtes Taifersar Arahesis gentoo org> CommitDate: Sun Jan 15 21:44:17 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D99e5562e portageq metadata: Support repository dependencies. --- bin/portageq | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/portageq b/bin/portageq index 5e488d3..e532f1c 100755 --- a/bin/portageq +++ b/bin/portageq @@ -1,5 +1,5 @@ #!/usr/bin/python -O -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 =20 from __future__ import print_function @@ -195,9 +195,11 @@ def metadata(argv): print("Unrecognized package type: '%s'" % pkgtype, file=3Dsys.stderr) sys.exit(1) trees =3D portage.db + repo =3D portage.dep.dep_getrepo(pkgspec) + pkgspec =3D portage.dep.remove_slot(pkgspec) try: values =3D trees[eroot][type_map[pkgtype]].dbapi.aux_get( - pkgspec, metakeys) + pkgspec, metakeys, myrepo=3Drepo) writemsg_stdout(''.join('%s\n' % x for x in values), noiselevel=3D-1) except KeyError: print("Package not found: '%s'" % pkgspec, file=3Dsys.stderr)