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 1QllWI-0006uE-2F for garchives@archives.gentoo.org; Tue, 26 Jul 2011 17:34:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8C3E521C280; Tue, 26 Jul 2011 17:34:05 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5819721C280 for ; Tue, 26 Jul 2011 17:34:05 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E1C241B402F for ; Tue, 26 Jul 2011 17:34:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 018038003D for ; Tue, 26 Jul 2011 17:34:04 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/standard/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/library/standard/special_vars.py X-VCS-Directories: pmstestsuite/library/standard/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f5871a66f660b2bad4cee94c80db2e65f83d7091 Date: Tue, 26 Jul 2011 17:34:04 +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: X-Archives-Hash: ae4dc7e14d5c2166fede3ce0e5c85486 commit: f5871a66f660b2bad4cee94c80db2e65f83d7091 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Tue Jul 26 17:34:20 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue Jul 26 17:34:20 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3Df5871a66 Use new gentoopm API to check RDEPEND=3D${DEPEND} fallback. --- pmstestsuite/library/standard/special_vars.py | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pmstestsuite/library/standard/special_vars.py b/pmstestsuite= /library/standard/special_vars.py index 3b3afba..8c35f08 100644 --- a/pmstestsuite/library/standard/special_vars.py +++ b/pmstestsuite/library/standard/special_vars.py @@ -34,8 +34,14 @@ class RDependFallbackTest(DBusEbuildTestCase): if not DBusEbuildTestCase.check_dbus_result(self, output, pm): return False =20 - meta =3D pm.installed[self.atom(pm)].metadata - return ((self.eapi =3D=3D 4) !=3D ('virtual/libc' in meta.RDEPEND.spli= t())) + def _has_our_pkg(deps): + for d in deps: + if d.key =3D=3D 'virtual/libc': + return True + return False + + rdep =3D pm.installed[self.atom(pm)].run_dependencies + return ((self.eapi =3D=3D 4) !=3D _has_our_pkg(rdep)) =20 class DefinedPhasesTest(DBusEbuildTestCase): """ Test whether DEFINED_PHASES are declared in EAPI 4. """