]> git.pld-linux.org Git - packages/glibc.git/commitdiff
handle errors from localedb-gen
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 16 Feb 2018 11:04:34 +0000 (13:04 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 16 Feb 2018 11:04:34 +0000 (13:04 +0200)
see http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2018-February/025504.html

glibc-localedb-gen [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 74265ea..53c627c
@@ -66,6 +66,7 @@ else
        DESTDIROPT="--prefix ${DESTDIR}"
 fi
 
+rc=0
 for loc in ${SUPPORTED_LOCALES} ; do
        if echo ${loc} | grep -q / ; then
                chset="`echo ${loc} | sed -e 's@^.*/@@'`"
@@ -85,7 +86,9 @@ for loc in ${SUPPORTED_LOCALES} ; do
        else
                localedef -f ${chset} -i ${iloc} ${loc} ${DESTDIROPT}
        fi
+       rc=$(($rc + $?))
        echo
 done
 
 echo "DONE."
+exit $rc
This page took 0.353363 seconds and 4 git commands to generate.