ecompressdir: avoid ecompress.break interference
authorZac Medico <zmedico@gentoo.org>
Sat, 2 Jun 2012 02:45:37 +0000 (19:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 2 Jun 2012 02:45:37 +0000 (19:45 -0700)
bin/ebuild-helpers/ecompressdir

index f39f883f34d19bcb8b14b93bc198b30c584d3605..c77d9982af20de91c528192ea6c4c69f00e114a6 100755 (executable)
@@ -164,13 +164,13 @@ for dir in "$@" ; do
                : $(( ret |= $? ))
        done
 
+       multijob_finish
+       : $(( ret |= $? ))
+
        # forcibly break all hard links as some compressors whine about it
        find "${dir}" -type f -links +1 -exec env file="{}" sh -c \
                'cp -p "${file}" "${file}.ecompress.break" ; mv -f "${file}.ecompress.break" "${file}"' \;
 
-       multijob_finish
-       : $(( ret |= $? ))
-
        # now lets do our work
        if [[ -n ${suffix} ]] ; then
                vecho "${0##*/}: $(ecompress --bin) /${actual_dir#${ED}}"