aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-09-21 16:35:47 +0200
committerMichał Górny <mgorny@gentoo.org>2018-03-04 22:03:52 +0100
commit9326ac37c0163b111397594c289e728f3dcd4ad7 (patch)
treeff1f1442824cabb1ea1ebafb715b1f6edafa032a /bin/ebuild-helpers
parentisolated-functions.sh: Ensure informational command output to stderr (diff)
downloadportage-9326ac37c0163b111397594c289e728f3dcd4ad7.tar.gz
portage-9326ac37c0163b111397594c289e728f3dcd4ad7.tar.bz2
portage-9326ac37c0163b111397594c289e728f3dcd4ad7.zip
Ban dohtml for EAPI 7
Bug: https://bugs.gentoo.org/show_bug.cgi?id=520546
Diffstat (limited to 'bin/ebuild-helpers')
-rwxr-xr-xbin/ebuild-helpers/dohtml7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dohtml b/bin/ebuild-helpers/dohtml
index 860d4abbe..49d6a6dfb 100755
--- a/bin/ebuild-helpers/dohtml
+++ b/bin/ebuild-helpers/dohtml
@@ -1,9 +1,14 @@
#!/bin/bash
-# Copyright 2009-2013 Gentoo Foundation
+# Copyright 2009-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1
+if ! ___eapi_has_dohtml; then
+ die "'${0##*/}' has been banned for EAPI '$EAPI'"
+ exit 1
+fi
+
if ___eapi_has_dohtml_deprecated; then
eqawarn "'${0##*/}' is deprecated in EAPI '$EAPI'"
fi