mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-07 22:54:11 -05:00
total_size_fix — less → 679 (#12536)
* Use CREW_DEST_DIR for total_size calculation. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * less => 679 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * total_size_fix: Build Run on linux/arm/v7. * total_size_fix: Build Run on linux/amd64. * total_size_fix: Package File Update Run on linux/386 container. * Remove less patch. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * total_size_fix: Package File Update Run on linux/386 container. --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e8912388ae
commit
39e9ecdeb1
2
bin/crew
2
bin/crew
@@ -834,7 +834,7 @@ def prepare_package(destdir)
|
||||
|
||||
# create file list
|
||||
filelist = Dir[".{#{CREW_PREFIX},#{HOME}}/**/{*,.?*}"].filter_map { |e| File.file?(e) || File.symlink?(e) ? e[1..] : nil }.sort
|
||||
total_size = filelist.sum { |file| File.file?(file) ? File.size(file) : 0 }
|
||||
total_size = filelist.sum { |file| File.file?(File.join(CREW_DEST_DIR, file)) ? File.size(File.join(CREW_DEST_DIR, file)) : 0 }
|
||||
|
||||
File.write 'filelist', <<~EOF
|
||||
# Total size: #{total_size}
|
||||
|
||||
Reference in New Issue
Block a user