]> code.ossystems Code Review - openembedded-core.git/commit
sstate-cache-management.sh: update for the SSTATE_MIRRORS
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 20 Aug 2012 08:29:46 +0000 (16:29 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Aug 2012 15:51:43 +0000 (16:51 +0100)
commit209ec08787981345a7f62b10a8a5c2ace0887c8e
tree7da895f387e2073029ac3a63406a76e9a8b39c69
parentaa1c4519f8e549b43a7d8bc51c5342d3409b464b
sstate-cache-management.sh: update for the SSTATE_MIRRORS

Several fixes:
* We have put the sstate file to SSTATE_DIR/??/ currently, but the
  sstate file on the SSTATE_MIRRORS or the obsolete one is still in
  SSTATE_DIR/ (no subdir), update the script to support manage them.

* Remove the related ".done" file in the SSTATE_DIR.

* Add a "-L, --follow-symlink" which will remove both the symbol link and
  the destination file

* Change the "ls -u file_list" (access time) to "ls -t file_list"
  (change tiem), since the "ls -u" and readlink will change the
  symlink's access time, which would make the result inconsistent.
  A solution is save the access time before every "ls -u" and "readlink",
  save it back after the command, but this would cause performance lost
  since it needs check each file and modify the symlink's status. Use
  the "-t" doesn't cause much different.

[YOCTO #2897]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/sstate-cache-management.sh