From: "Gilles Dartiguelongue" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:gnome-xdg-eclasses commit in: eclass/
Date: Tue, 24 Nov 2015 18:50:08 +0000 (UTC) [thread overview]
Message-ID: <1448390979.0799fdf5c54ed473a45973eda6d3a63fd33fd7c9.eva@gentoo> (raw)
commit: 0799fdf5c54ed473a45973eda6d3a63fd33fd7c9
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 24 17:52:06 2015 +0000
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Tue Nov 24 18:49:39 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0799fdf5
xdg-utils.eclass: add phase check
eclass/xdg-utils.eclass | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index 3dc9e8e..10c8c42 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -69,6 +69,10 @@ xdg_environment_reset() {
xdg_desktop_database_update() {
local updater="${EROOT}${DESKTOP_DATABASE_UPDATE_BIN}"
+ if [[ ${EBUILD_PHASE} != post* ]] ; then
+ die "xdg_desktop_database_update must be used in pkg_post* phases."
+ fi
+
if [[ ! -x "${updater}" ]] ; then
debug-print "${updater} is not executable"
return
@@ -86,6 +90,10 @@ xdg_desktop_database_update() {
xdg_mimeinfo_database_update() {
local updater="${EROOT}${MIMEINFO_DATABASE_UPDATE_BIN}"
+ if [[ ${EBUILD_PHASE} != post* ]] ; then
+ die "xdg_mimeinfo_database_update must be used in pkg_post* phases."
+ fi
+
if [[ ! -x "${updater}" ]] ; then
debug-print "${updater} is not executable"
return
next reply other threads:[~2015-11-24 18:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-24 18:50 Gilles Dartiguelongue [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-11-24 19:08 [gentoo-commits] repo/gentoo:gnome-xdg-eclasses commit in: eclass/ Gilles Dartiguelongue
2015-11-24 18:50 Gilles Dartiguelongue
2015-11-24 18:50 Gilles Dartiguelongue
2015-11-24 18:50 Gilles Dartiguelongue
2015-11-24 18:50 Gilles Dartiguelongue
2015-11-24 18:50 Gilles Dartiguelongue
2015-11-23 14:38 Gilles Dartiguelongue
2015-11-23 14:38 Gilles Dartiguelongue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1448390979.0799fdf5c54ed473a45973eda6d3a63fd33fd7c9.eva@gentoo \
--to=eva@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox