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 <gentoo-commits+bounces-317446-garchives=archives.gentoo.org@lists.gentoo.org>) id 1Pq1Kp-0006Su-36 for garchives@archives.gentoo.org; Thu, 17 Feb 2011 10:43:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 956FE1C001; Thu, 17 Feb 2011 10:43:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 6215A1C001 for <gentoo-commits@lists.gentoo.org>; Thu, 17 Feb 2011 10:43:35 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DA2C81B4055 for <gentoo-commits@lists.gentoo.org>; Thu, 17 Feb 2011 10:43:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 345F68006A for <gentoo-commits@lists.gentoo.org>; Thu, 17 Feb 2011 10:43:34 +0000 (UTC) From: "Zac Medico" <zmedico@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" <zmedico@gentoo.org> Message-ID: <ad4b1c9df3eb00382b03fbc9c24f2a3a8eab58f4.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/tests/resolver/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/tests/resolver/test_depth.py X-VCS-Directories: pym/portage/tests/resolver/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: ad4b1c9df3eb00382b03fbc9c24f2a3a8eab58f4 Date: Thu, 17 Feb 2011 10:43:34 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 2e540480faf2256e900296a1701506a1 commit: ad4b1c9df3eb00382b03fbc9c24f2a3a8eab58f4 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Thu Feb 17 10:43:02 2011 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Thu Feb 17 10:43:02 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dad4b1c9d ResolverDepthTestCase: test --selective more --- pym/portage/tests/resolver/test_depth.py | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/pym/portage/tests/resolver/test_depth.py b/pym/portage/tests= /resolver/test_depth.py index f070167..ec3e238 100644 --- a/pym/portage/tests/resolver/test_depth.py +++ b/pym/portage/tests/resolver/test_depth.py @@ -187,6 +187,21 @@ class ResolverDepthTestCase(TestCase): success =3D True, mergelist =3D ["dev-db/hsqldb-1.8"]), =20 + # Don't traverse deps of an installed package with --deep=3D0, + # even if it's a virtual. + ResolverPlaygroundTestCase( + ["virtual/libusb:0"], + options =3D {"--selective" : True, "--deep" : 0}, + success =3D True, + mergelist =3D []), + + # Satisfy unsatisfied dep of installed package with --deep=3D1. + ResolverPlaygroundTestCase( + ["virtual/libusb:0"], + options =3D {"--selective" : True, "--deep" : 1}, + success =3D True, + mergelist =3D ['dev-libs/libusb-0.1.13']), + # Pull in direct dep of virtual, even with --deep=3D0. ResolverPlaygroundTestCase( ["sys-fs/udev"],