aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bin/doins.py: avoid timestamp precision loss with python2 (bug 642632)Zac Medico2018-01-171-0/+4
| | | | | | | | | Since conversion to/from float results in timestamp precision loss with less than Python 3.3, do not use the python implementation in this case. Bug: https://bugs.gentoo.org/642632 Fixes: d459f05ff71f ("bin/doins.py: implement install -p option (bug 642632)")
* bin/doins.py: implement install -p option (bug 642632)Zac Medico2018-01-071-5/+29
| | | | | | Bug: https://bugs.gentoo.org/642632 Reviewed-by: Alec Warner <antarus@gentoo.org> Reviewed-by: Mike Gilbert <floppym@gentoo.org>
* bin/doins.py: remove file before creating symlink (bug 640376)Zac Medico2017-12-101-1/+5
| | | | | Fixes: d9522ba661b5 ("Rewrite doins in python (bug 624526)") Bug: https://bugs.gentoo.org/640376
* bin/doins.py: optimize with copyfile from portage.util.file_copyZac Medico2017-12-021-6/+5
| | | | Bug: https://bugs.gentoo.org/624526
* Rewrite doins in python (bug 624526)Hidehiko Abe2017-12-021-0/+580
doins is written in bash. However, specifically in case that too many files are installed, it is very slow. This CL rewrites the script in python for performance. BUG=chromium:712659 TEST=time (./setup_board --forace && \ ./build_package --withdev && \ ./build_image --noenable_rootfs_verification test) ===Before=== real 21m35.445s user 93m40.588s sys 21m31.224s ===After=== real 17m30.106s user 94m1.812s sys 20m13.468s Change-Id: Ib10f623961ba316753d58397cff5e72fbc343339 Reviewed-on: https://chromium-review.googlesource.com/559225 X-Chromium-Bug: 712659 X-Chromium-Bug-url: https://bugs.chromium.org/p/chromium/issues/detail?id=712659 Reviewed-by: Manuel RĂ¼ger <mrueg@gentoo.org> Bug: https://bugs.gentoo.org/624526