eutils.eclass: Deprecate validate_desktop_entries
authorMichał Górny <mgorny@gentoo.org>
Sat, 11 Mar 2017 13:03:40 +0000 (14:03 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 18 Mar 2017 07:33:15 +0000 (08:33 +0100)
The validate_desktop_entries function is redundant to the built-in
.desktop file checks done by Portage directly. It is used in total by
two packages for both of which bugs have been filed.

eclass/eutils.eclass

index e398aafc464a3327af3c3be571dee6dfeb389125..ac6a4854d17b7ff14484f85336932e239738cf87 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: eutils.eclass
@@ -883,6 +883,9 @@ _eutils_eprefix_init() {
 # @DESCRIPTION:
 # Validate desktop entries using desktop-file-utils
 validate_desktop_entries() {
+       eqawarn "validate_desktop_entries is deprecated and should be not be used."
+       eqawarn ".desktop file validation is done implicitly by Portage now."
+
        _eutils_eprefix_init
        if [[ -x "${EPREFIX}"/usr/bin/desktop-file-validate ]] ; then
                einfo "Checking desktop entry validity"