commit:     799b0ed2ef39e49b56f0204bc8db52d0353b1e63
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  6 21:09:03 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Aug  6 21:09:03 2021 +0000
URL:        https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=799b0ed2

Ensure DESTDIR ends with a /

Bug: https://bugs.gentoo.org/779790
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 locale-gen | 1 +
 1 file changed, 1 insertion(+)

diff --git a/locale-gen b/locale-gen
index b41258f..264cd23 100755
--- a/locale-gen
+++ b/locale-gen
@@ -127,6 +127,7 @@ if [[ ${EROOT} != "/" ]] ; then
 fi
 
 if [[ -n ${DESTDIR} ]] ; then
+       DESTDIR="${DESTDIR%/}/"
        einfo "Building locales in DESTDIR '${DESTDIR}'"
 else
        DESTDIR=${EROOT}

Reply via email to