Change cookie, configuration and cache files to use appdir path.

Review Request #11423 — Created Jan. 31, 2021 and updated — Latest diff uploaded

Information

RBTools
master

Reviewers

We need to unify the locations that store cookie, config and cache files for the later releases.
Copy any legacy cookie files to the new appdir path and create new cookie file at the new appdir path if no legacy cookie files exist.

Write a test for generate configuration file in appdir path and pass it.

Write a test for create_cookie_jar and pass it.

Changes between revision 1 and 2

orig
1
2
3
4
5
6
7
8
9
10
11

Commits

Summary ID Author
[WIP] Finish the draft code for the cookie and config. Write a unit test for ...
7f8b6b99a8c39662a0d8831d449db3ca1945d162 Qianxi Li
[WIP] Edit cookie creating and path checking. Pass the test for XDG config file.
ec1cf8f0aa8ab5c81f42715270b0c2d4199331cd Qianxi Li
Fix extra space before newline. Fix too long lines.
a5e2d448a613cffa1009674cdb1061cbbdcebf3b Qianxi Li
rbtools/api/request.py
rbtools/commands/setup_repo.py
rbtools/commands/tests/test_setup_repo.py
rbtools/utils/filesystem.py
Loading...