aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2011-07-26 19:34:20 +0200
committerMichał Górny <mgorny@gentoo.org>2011-07-26 19:34:20 +0200
commitf5871a66f660b2bad4cee94c80db2e65f83d7091 (patch)
tree6c7cbabb9bf82b1e0294a69d08c2c9291805b700 /pmstestsuite/library/standard/special_vars.py
parentDrop Markdown docs, API docs should be enough. (diff)
downloadpms-test-suite-f5871a66f660b2bad4cee94c80db2e65f83d7091.tar.gz
pms-test-suite-f5871a66f660b2bad4cee94c80db2e65f83d7091.tar.bz2
pms-test-suite-f5871a66f660b2bad4cee94c80db2e65f83d7091.zip
Use new gentoopm API to check RDEPEND=${DEPEND} fallback.
Diffstat (limited to 'pmstestsuite/library/standard/special_vars.py')
-rw-r--r--pmstestsuite/library/standard/special_vars.py10
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
- meta = pm.installed[self.atom(pm)].metadata
- return ((self.eapi == 4) != ('virtual/libc' in meta.RDEPEND.split()))
+ def _has_our_pkg(deps):
+ for d in deps:
+ if d.key == 'virtual/libc':
+ return True
+ return False
+
+ rdep = pm.installed[self.atom(pm)].run_dependencies
+ return ((self.eapi == 4) != _has_our_pkg(rdep))
class DefinedPhasesTest(DBusEbuildTestCase):
""" Test whether DEFINED_PHASES are declared in EAPI 4. """