mirror of
git://slackware.nl/current.git
synced 2024-12-31 10:28:29 +01:00
26 lines
948 B
Diff
26 lines
948 B
Diff
|
Author: Patrick Franz <deltaone@debian.org>
|
||
|
Description: Building on 32-bit architectures fails when trying to compress
|
||
|
files in the devtools-frontend.
|
||
|
Forwarded: not-needed
|
||
|
|
||
|
--- a/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/compress_files.js
|
||
|
+++ b/src/3rdparty/chromium/third_party/devtools-frontend/src/scripts/build/compress_files.js
|
||
|
@@ -75,7 +75,16 @@ async function main(argv) {
|
||
|
const fileList = argv[fileListPosition + 1];
|
||
|
const fileListContents = await readTextFile(fileList);
|
||
|
const files = fileListContents.split(' ');
|
||
|
- await Promise.all(files.map(filename => filename.trim()).map(compressFile));
|
||
|
+ for (let i = 0; i < files.length; i++) {
|
||
|
+ const fileName = files[i].trim();
|
||
|
+ try {
|
||
|
+ await compressFile(fileName);
|
||
|
+ } catch (e) {
|
||
|
+ console.log('Failing compressing', fileName);
|
||
|
+ console.log(e);
|
||
|
+ process.exit(1);
|
||
|
+ }
|
||
|
+ }
|
||
|
}
|
||
|
|
||
|
main(process.argv).catch(err => {
|