* [gentoo-dev] [PATCH] eutils.eclass: Deprecate validate_desktop_entries
@ 2017-03-11 13:06 Michał Górny
2017-03-18 7:34 ` Michał Górny
0 siblings, 1 reply; 2+ messages in thread
From: Michał Górny @ 2017-03-11 13:06 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index e398aafc464a..d91245495caa 100644
--- a/eclass/eutils.eclass
+++ b/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"
--
2.12.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [gentoo-dev] [PATCH] eutils.eclass: Deprecate validate_desktop_entries
2017-03-11 13:06 [gentoo-dev] [PATCH] eutils.eclass: Deprecate validate_desktop_entries Michał Górny
@ 2017-03-18 7:34 ` Michał Górny
0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2017-03-18 7:34 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]
On sob, 2017-03-11 at 14:06 +0100, Michał Górny wrote:
> 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 | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
> index e398aafc464a..d91245495caa 100644
> --- a/eclass/eutils.eclass
> +++ b/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"
Committed.
--
Best regards,
Michał Górny
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 963 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-18 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 13:06 [gentoo-dev] [PATCH] eutils.eclass: Deprecate validate_desktop_entries Michał Górny
2017-03-18 7:34 ` Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox