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 0CD1C1389E2 for ; Sat, 13 Dec 2014 16:06:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3092FE08C6; Sat, 13 Dec 2014 16:06:33 +0000 (UTC) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A1023E07D8 for ; Sat, 13 Dec 2014 16:06:32 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id n3so5117305wiv.17 for ; Sat, 13 Dec 2014 08:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=K1VvZRx3Lp2PdxL8RWCCjGk4ph9Ue5iKmHiEXsVyRrs=; b=kbrkBDDXYK0CJ+gf0ypPeI7PLj2lyxBvMgxswyBjwmNYLL8HNUw68I1vaLWFCjxbgt mZ8CGsSu4wPedDytOz1z2qPFyJHqg5yVZs54jYk+ZKj0Cu4ufBGzd+CGWmAjN3eEp2+h +lOU+1pxaH/9yiUKmGqWa26xNc4DesCtvsbubLNDyN4IrVeG12yKXRnnEdY97Yswox7a 7T/igSuIVBt4Q9BQf+1DQpRMygukcZrRtNvrf9WdoZSgHyjvl8s14hBJVGKJ+lGmdRjG tKNS7rxQVvNXcyFIttxFLvrvfPj4baXwn0bWbKtTHvmroPHemHvVFThTcy9XsdMv9DoL EYzQ== X-Received: by 10.180.84.198 with SMTP id b6mr17220016wiz.41.1418486791499; Sat, 13 Dec 2014 08:06:31 -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 ex9sm6128120wib.14.2014.12.13.08.06.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 13 Dec 2014 08:06:30 -0800 (PST) From: Arfrever Frehtes Taifersar Arahesis X-Google-Original-From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Portage Development Subject: [gentoo-portage-dev] [PATCH] portageq pquery: Search ebuilds in all repositories be default Date: Sat, 13 Dec 2014 17:06:02 +0100 User-Agent: KMail (GNU/Linux) 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="nextPart8109012.qXUrumBQRM"; protocol="application/pgp-signature"; micalg=pgp-sha512 Content-Transfer-Encoding: 7bit Message-Id: <201412131706.04214.Arfrever.FTA@gmail.com> X-Archives-Salt: ca3f5fc4-abb4-4880-9864-cc6afcb58ebc X-Archives-Hash: 14e71324390e9e104d2b88995c288efe --nextPart8109012.qXUrumBQRM Content-Type: multipart/mixed; boundary="Boundary-01=_rPGjUBHvNm11AB6" Content-Transfer-Encoding: 7bit --Boundary-01=_rPGjUBHvNm11AB6 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline [[[ portageq pquery: Search ebuilds in all repositories be default. --all-repos option is no longer supported. 1 call to deprecated portage.repository.config.RepoConfigLoader.mainRepo() function has been deleted. ]]] -- Arfrever Frehtes Taifersar Arahesis --Boundary-01=_rPGjUBHvNm11AB6 Content-Type: text/x-patch; charset="utf-8"; name="portage.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="portage.patch" =2D-- bin/portageq +++ bin/portageq @@ -1075,14 +1075,10 @@ herds.extend(x.split(",")) xml_matchers.append(HerdMatcher(herds)) =20 =2D repos =3D [] =2D if opts.all_repos: =2D repos.extend(portdb.repositories.get_repo_for_location(location) =2D for location in portdb.porttrees) =2D elif opts.repo is not None: =2D repos.append(portdb.repositories[opts.repo]) + if opts.repo is not None: + repos =3D [portdb.repositories[opts.repo]] else: =2D repos.append(portdb.repositories.mainRepo()) + repos =3D list(portdb.repositories) =20 if not atoms: names =3D None @@ -1220,12 +1216,8 @@ }, { "longopt": "--repo", =2D "help": "repo to use (default is PORTDIR if omitted)" + "help": "repository to use (all repositories are used by default)" }, =2D { =2D "longopt": "--all-repos", =2D "help": "search all repos" =2D } ) ), ( --Boundary-01=_rPGjUBHvNm11AB6-- --nextPart8109012.qXUrumBQRM Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCgAGBQJUjGPsAAoJEHgbAhhyXND81W0P/1oowBu3xyuQYWF/4Zkaypps nyH0SqUpvDrHxvrpmi2yXK4zYoY+yyEUmiyKOMgHKEWktMseiUB9Rq7dF3mh4mrS FpJ/nYodDx/KEdcIVTi0r+jSeOSkz4lnwbN/JiD/VVjT4FFqeetir3BdtZV0ci84 u+Ni7gPlLruN2cXBjhsQd4bWFDN51vKI0u6VCyLnDw6wolXfZhzZCrfFjl5j52Hp 1v8Auj9FkVdjir0d7QLs+Bi2h+RFC2eHT0yZZVtbduzdi1GPVOH1aDgkPKlM9OUA qvo4bVm+6+gF9FsTsvTJBcR7XAU0DwXi0arRcxQvpWOv9HzaJfelFdKgD1N9RabY RDAkPMPx7Niou5ZQ0SVpql1x8Y6HXe/8ARuzYmzn1Ccn52w6NX5if0qJld8ltXRU wfw8ujR5Bi4egZfaG8u/ausoDBQIBxwmtTPgZ57gVKXa8hCOTQx/SuvxAiMw/4cC PWpRjmfFvuc898DzDQPOja7HkL7S/oX2aIg474MLEF8fZxGEO9xgTQ+EgPJwCC5k 1rsjAcC9GbZhpVb38rYQl6PrvE7T81TM0slD8WHEwM9hOMaombn8K3F8vH/oFawI EZ1mAc8M2UDLvGKLyvCh95mQR43D5eydRer9mW57x6Oy8btoTuuh9tweEj3wz56B mnHjwlgCNClXk/+pHZmJ =syKx -----END PGP SIGNATURE----- --nextPart8109012.qXUrumBQRM--