[crosstool-ng/crosstool-ng] 21af76: Detect errors in CT_SaveLocal

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[crosstool-ng/crosstool-ng] 21af76: Detect errors in CT_SaveLocal

Alexey Neyman
  Branch: refs/heads/master
  Home:   https://github.com/crosstool-ng/crosstool-ng
  Commit: 21af769802e25d99ef00026372b3e54970643f61
      https://github.com/crosstool-ng/crosstool-ng/commit/21af769802e25d99ef00026372b3e54970643f61
  Author: Alexey Neyman <[hidden email]>
  Date:   2018-10-27 (Sat, 27 Oct 2018)

  Changed paths:
    M scripts/functions

  Log Message:
  -----------
  Detect errors in CT_SaveLocal

The function is called from a conditional and therefore, the CT_OnError
handler is not invoked on failures. Need to return an error and check
for the error return in the caller.

Also, while here, fix the issue that was causing the failure -
move can fail if it crosses a filesystem, so fall back to 'cp+rm' in
that case.

Signed-off-by: Alexey Neyman <[hidden email]>


  Commit: d2bf59cb7da0940aa3a7bd660f2701f3eb2677fe
      https://github.com/crosstool-ng/crosstool-ng/commit/d2bf59cb7da0940aa3a7bd660f2701f3eb2677fe
  Author: Alexey Neyman <[hidden email]>
  Date:   2018-10-27 (Sat, 27 Oct 2018)

  Changed paths:
    M scripts/functions

  Log Message:
  -----------
  Merge pull request #1072 from stilor/failure-when-saving

Detect errors in CT_SaveLocal


Compare: https://github.com/crosstool-ng/crosstool-ng/compare/e12e90c798a7...d2bf59cb7da0
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.