Commit Graph

38 Commits

Author SHA1 Message Date
Zoraver Kang
43fbd1d76c Add write permission to read-only files so their domains can be subsituted
This was added because both `third_party/shaka-player/dist/package.json` and
`third_party/shaka-player/dist/shaka-player.ui.extens.js` are read-only when
extracted from the chromium source tarball. Currently, this change could
potentially be replaced by manual vetting and whitelisting of the
beforementioned files from the domain subsitution routine. Another alternative
to this approach would be to pass an argument to tar (or whatever other program
is used to perform the extraction) that specifies that the extracted files are
to be writable.
2020-11-21 03:23:09 -05:00
Eloston
e420b03bcc utils/downloads.py: Remove axel downloader
When downloading the official Chromium tar file, axel is no longer able
to parallelize the connections nor detect the filesize. It is likely
Google added a specific rule for axel since curl and Chromium work
normally. While it is possible to circumvent this rule, Google might
have imposed it to reduce spikes of heavy load on their servers. We
should respect this and just use curl instead, which only uses one
connection and has the ability to resume interrupted downloads.
2020-08-24 21:36:18 -07:00
Eloston
0dc89fea82 utils/downloads.py: Support axel and curl, and download resumption
Downloading resumption is done by downloading files with ".partial"
extensions, then renaming them after they're done.

The urllib downloader should probably be replaced with requests, but the
CLI downloaders are better anyway. Also, support for aria2 and wget is
missing.

Fixes #996
2020-06-14 22:15:35 -07:00
Eloston
eaf7523375 utils: Fix extraction for Windows
Also cleanup the code a little

Closes #1028
2020-05-09 12:28:58 -07:00
Eloston
9a61cbb699 utils/downloads.py: Add debug message for retrieval URL
The downloader does not handle network interruptions well (e.g. a
connection can hang indefinitely and the downloader will not terminate).
This message makes it easier to manually download it using a more
advanced downloader like axel, which supports parallel downloading and
download resumption.
2020-04-11 12:10:31 -07:00
Eloston
d05894db61 Merge pull request #961 from tangalbert919/winrar
Add WinRAR support
2020-04-01 19:59:02 +00:00
Albert Tang
dea13af720 Fix code check 2020-04-01 09:51:10 -05:00
Eloston
cedbf02386 utis/patches.py: Fix typo
Actually fixes #971
2020-03-28 13:36:21 -07:00
Eloston
5bc1222a86 Add backwards compatibility with Python 3.6 2020-03-24 16:32:46 -07:00
Eloston
1a086e7d97 utils/patches.py: Fix regression when specifying --patch-bin
Fixes #971
2020-03-24 13:07:43 -07:00
Albert Tang
db247831c8 Add WinRAR support 2020-03-12 18:20:39 -05:00
Eloston
1dd09cfd20 Fix pylint errors 2020-03-07 20:58:07 -08:00
Eloston
7ccefb672e devutils/validate_patches.py: Add --dry-run to verbose error
Fixes #957
2020-03-07 20:39:37 -08:00
Eloston
4679001429 Add patch duplication test
Fixes #958
2020-03-07 12:08:21 -08:00
Eloston
2d12ecfd88 utils: Fix yapf formatting 2019-11-05 16:12:03 -08:00
Eloston
1a0e163a11 Add timestamp manipulation to domain substitution
Also add preliminary testing code for utils

Fixes #849
2019-11-05 16:07:49 -08:00
wchen342
744b38c9b1 Move setting function to Action class; make verbose, quiet and log-level exclusive
Fix arg confliction

pylint fix

pylint fix

Move setting function to Action class; make verbose, quiet and log-level exclusive
2019-09-28 22:09:01 -04:00
wchen342
48509f38af Fix a bug in validate_patches.py 2019-09-27 22:20:18 -04:00
wchen342
ab23da0ead Fix style 2019-09-27 22:10:06 -04:00
wchen342
211c49ee37 Add common flags; allow change of logging level 2019-09-27 22:04:06 -04:00
wchen342
53de2f6cd4 Style fix 2019-09-24 14:53:47 -04:00
wchen342
5ddf02612d Set default log level for utils to INFO; only show unremovable files on DEBUG 2019-09-24 14:48:40 -04:00
Eloston
55c9945bad Fix bugs with comments in series files 2019-04-11 22:00:26 -07:00
Eloston
5f81f45764 Allow comments in series file
Closes #727
2019-04-11 21:40:41 -07:00
Eloston
a21c3f79ab utils/patches.py: Fix argparse errors
Fixes #717
2019-03-23 15:51:39 -07:00
Eloston
dc3ee22042 utils/filescfg.py: Fix CLI not running 2019-03-23 01:21:26 -07:00
Eloston
262b83c66e Update copyright years to 2019 2019-03-21 23:33:11 -07:00
Eloston
88d38d1255 utils/prune_binaries.py: Make binary pruning functional 2019-03-18 13:35:13 -07:00
Eloston
d932c97c7f utils/patches.py: Major bug fixes 2019-03-15 22:56:26 -07:00
Eloston
996d54d79d utils/patches.py: Change --append to --prepend 2019-03-10 16:51:09 -07:00
Eloston
f73ffb45bc Attempt to fix CI checks 2019-03-09 23:57:19 -08:00
Eloston
1003bd6504 Update comments referencing buildkit to something else 2019-03-09 23:52:38 -08:00
Eloston
32edb78cde devutils: Update validate_patches.py and minor fixes 2019-03-09 23:31:54 -08:00
Eloston
94d92dde99 Various improvements ito devutils 2019-02-17 19:23:11 -08:00
Eloston
9c51cecf2c utils: Fix pylint errors and related devutils 2019-02-17 15:04:53 -08:00
Eloston
6c4303e603 Update copyright and WIP updating of devutils 2019-01-25 10:10:48 -08:00
Eloston
6905a8c13f WIP splitting of buildkit 2019-01-18 17:05:24 -08:00
Eloston
1a7a3ff994 Rearrange files for buildkit deprecation 2019-01-18 14:41:46 -08:00