aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-08-31 14:15:13 +0200
committerMichał Górny <mgorny@gentoo.org>2021-09-01 12:09:26 +0200
commite2b417dd81f5f8a92191b0053ec746290f0bd207 (patch)
tree305855608450db824832cc2e8d659c83ec5d7a24 /tests/ebuild
parentadd minimal tests for ebuild.eclass.EclassDoc (diff)
downloadpkgcore-e2b417dd81f5f8a92191b0053ec746290f0bd207.tar.gz
pkgcore-e2b417dd81f5f8a92191b0053ec746290f0bd207.tar.bz2
pkgcore-e2b417dd81f5f8a92191b0053ec746290f0bd207.zip
ebuild.eclass: Support @PROVIDES in place of @INDIRECT_ECLASSES
Add support for @PROVIDES tag that replaces the pkgcore-specific @INDIRECT_ECLASSES. Add an alias attribute to preserve backwards compatibility for the time being.
Diffstat (limited to 'tests/ebuild')
-rw-r--r--tests/ebuild/test_eclass.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ebuild/test_eclass.py b/tests/ebuild/test_eclass.py
index a18506b38..cabbe0400 100644
--- a/tests/ebuild/test_eclass.py
+++ b/tests/ebuild/test_eclass.py
@@ -15,7 +15,7 @@ FOO_ECLASS = '''
# Report bugs somewhere.
# @VCSURL: https://example.com/foo.eclass
# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
-# @INDIRECT_ECLASSES: bar
+# @PROVIDES: bar
# @BLURB: Test eclass.
# @DEPRECATED: bar or frobnicate
# @DESCRIPTION:
@@ -91,7 +91,7 @@ class TestEclassDoc(TempDirMixin, TestCase):
assert doc.vcsurl == 'https://example.com/foo.eclass'
assert doc.blurb == 'Test eclass.'
assert doc.deprecated == 'bar or frobnicate'
- assert doc.indirect_eclasses == ('bar',)
+ assert doc.raw_provides == ('bar',)
assert doc.maintainers == ('Random Person <maintainer@random.email>',)
assert doc.authors == ('Another Person <another@random.email>',
'Random Person <maintainer@random.email>',)