public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 1/4] xdg-utils.eclass: make EAPI 7 ready
@ 2018-06-20  7:10 Marty E. Plummer
  2018-06-20  7:10 ` [gentoo-dev] [PATCH 2/4] gnome2-utils.eclass: " Marty E. Plummer
                   ` (3 more replies)
  0 siblings, 4 replies; 24+ messages in thread
From: Marty E. Plummer @ 2018-06-20  7:10 UTC (permalink / raw
  To: gentoo-dev; +Cc: Marty E. Plummer

Use ${EROOT%/} whereever possible, as the tools and directories which
are used with it are already prefixed with a /

Package-Manager: Portage-2.3.40, Repoman-2.3.9
---
 eclass/xdg-utils.eclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/xdg-utils.eclass b/eclass/xdg-utils.eclass
index ac075185d8e..8dba5ed6861 100644
--- a/eclass/xdg-utils.eclass
+++ b/eclass/xdg-utils.eclass
@@ -15,7 +15,7 @@
 #  * XDG mime information database management
 
 case "${EAPI:-0}" in
-	0|1|2|3|4|5|6) ;;
+	0|1|2|3|4|5|6|7) ;;
 	*) die "EAPI=${EAPI} is not supported" ;;
 esac
 
@@ -66,7 +66,7 @@ xdg_environment_reset() {
 # Updates the .desktop files database.
 # Generates a list of mimetypes linked to applications that can handle them
 xdg_desktop_database_update() {
-	local updater="${EROOT}${DESKTOP_DATABASE_UPDATE_BIN}"
+	local updater="${EROOT%/}${DESKTOP_DATABASE_UPDATE_BIN}"
 
 	if [[ ${EBUILD_PHASE} != post* ]] ; then
 		die "xdg_desktop_database_update must be used in pkg_post* phases."
@@ -78,7 +78,7 @@ xdg_desktop_database_update() {
 	fi
 
 	ebegin "Updating .desktop files database"
-	"${updater}" -q "${EROOT}${DESKTOP_DATABASE_DIR}"
+	"${updater}" -q "${EROOT%/}${DESKTOP_DATABASE_DIR}"
 	eend $?
 }
 
@@ -87,7 +87,7 @@ xdg_desktop_database_update() {
 # Update the mime database.
 # Creates a general list of mime types from several sources
 xdg_mimeinfo_database_update() {
-	local updater="${EROOT}${MIMEINFO_DATABASE_UPDATE_BIN}"
+	local updater="${EROOT%/}${MIMEINFO_DATABASE_UPDATE_BIN}"
 
 	if [[ ${EBUILD_PHASE} != post* ]] ; then
 		die "xdg_mimeinfo_database_update must be used in pkg_post* phases."
@@ -99,6 +99,6 @@ xdg_mimeinfo_database_update() {
 	fi
 
 	ebegin "Updating shared mime info database"
-	"${updater}" "${EROOT}${MIMEINFO_DATABASE_DIR}"
+	"${updater}" "${EROOT%/}${MIMEINFO_DATABASE_DIR}"
 	eend $?
 }
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2018-06-21  9:00 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-20  7:10 [gentoo-dev] [PATCH 1/4] xdg-utils.eclass: make EAPI 7 ready Marty E. Plummer
2018-06-20  7:10 ` [gentoo-dev] [PATCH 2/4] gnome2-utils.eclass: " Marty E. Plummer
2018-06-20  7:25   ` Michał Górny
2018-06-20  9:00     ` Marty E. Plummer
2018-06-21  0:43     ` Marty E. Plummer
2018-06-20  7:10 ` [gentoo-dev] [PATCH 3/4] gnome2-utils: move icon functions into xdg-utils Marty E. Plummer
2018-06-20  7:27   ` Michał Górny
2018-06-20  9:03     ` Marty E. Plummer
2018-06-20  9:18       ` Michał Górny
2018-06-20  7:10 ` [gentoo-dev] [PATCH 4/4] gnome2.eclass: move icon handling code to xdg.eclass Marty E. Plummer
2018-06-20  7:27   ` Michał Górny
2018-06-20  9:04     ` Marty E. Plummer
2018-06-20  9:19       ` Michał Górny
2018-06-20 10:07         ` Marty E. Plummer
2018-06-20 10:11           ` Michał Górny
2018-06-20 13:03 ` [gentoo-dev] [PATCH 1/4] xdg-utils.eclass: make EAPI 7 ready Jason Zaman
2018-06-20 19:31   ` James Le Cuirot
2018-06-20 22:21   ` Marty E. Plummer
2018-06-20 22:33     ` James Le Cuirot
2018-06-20 23:01       ` Marty E. Plummer
2018-06-21  2:38         ` Jason Zaman
2018-06-21  2:41           ` M. J. Everitt
2018-06-21  3:09             ` Marty E. Plummer
2018-06-21  9:00               ` James Le Cuirot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox