]> code.ossystems Code Review - openembedded-core.git/commit
A script to clean obsolete sstate cache files
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 22 Feb 2012 12:38:30 +0000 (20:38 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Feb 2012 23:59:17 +0000 (23:59 +0000)
commit7c99ef6d2173b14e1109a540ee5ae47b56d707e7
treece7d28070627ba81a419ae4a8120385e577fb332
parent01ea85f7f6c53c66c76d6f832518b28bf06ec072
A script to clean obsolete sstate cache files

There would be many obsolete cache files in the SSTATE_DIR after several
builds, this script can remove the obsolete one for a pkg, only leave
the up to date one.

Here is the help text:

sstate-cache-management.sh <OPTION>

Options:
  --help, -h
        Display this help and exit.

  --cache-dir=<sstate cache dir>
        Specify sstate cache directory, will use the environment
        variable SSTATE_CACHE_DIR if it is not specified.

  --remove-duplicated
        Remove the duplicated sstate cache files of one package, only
        the newest one would be kept.

[YOCTO #1682]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
scripts/sstate-cache-management.sh [new file with mode: 0755]