Fix install issue on total_size 0 for glibc_fallthrough (#13677)

This commit is contained in:
Max Downey Twiss
2025-12-02 13:48:17 +11:00
committed by GitHub
parent eec80ff16a
commit 3051f115e8

View File

@@ -963,7 +963,7 @@ def prepare_package(destdir)
# If the package is completely empty, something has probably gone wrong.
total_size = filelist.values.sum
abort 'total_size is 0. It seems that no files were installed.'.lightred if total_size.zero?
abort 'total_size is 0. It seems that no files were installed.'.lightred if total_size.zero? && @pkg.name != 'glibc_fallthrough'
File.write 'filelist', <<~EOF
# Total size: #{total_size}