commit:     b0acfa4042c9f24186d9dbca4213facf898ed72f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  9 04:09:12 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun  9 04:09:12 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=b0acfa40

ecompress: mark the file for compression

In e1350e68e944ea2b8972f1303635a29c7f77c05d, the flow of this block
changes where we don't mark the file for compression anymore because
we return early if the file doesn't have a suffix (so we don't need
to do collision protection).

Fixes: e1350e68e944ea2b8972f1303635a29c7f77c05d
Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/ecompress | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/ecompress b/bin/ecompress
index b63763ed30..345b625ab8 100755
--- a/bin/ecompress
+++ b/bin/ecompress
@@ -95,9 +95,9 @@ do_queue() {
                                fi
                        done
                        printf '%s\n' "${path#"${D%/}"}" || ! break
-
-                       : >> "${path}.ecompress" || die
                fi
+
+               : >> "${path}.ecompress" || die
        done \
        < <(printf '%s\0' "${paths[@]}" | find0 "${find_args[@]}" ! -path 
$'*\n*' -print0) \
        > "${T}"/.ecompress_had_precompressed || die

Reply via email to