Bug 2198

Summary: sstate-cache-management.sh: fixes and enhancement
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Robert Yang <liezhi.yang>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: meta.mr.watcher, meta.watcher
Version: 1.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Robert Yang 2012-03-30 05:58:48 UTC
Fixes a few problems and enhance its functions it shoud be more useful 
now.

* Search meta and meta-* for archs, and grep AVAILTUNES for archs,
  (only search meta, and grep DEFAULTTUNE before), add the host arch.
  and also can search extra layers, see "Add the following options".

* Reduce the analyzing time when remove duplicated files.
  It would cost more than 10 minutes to analyze 10,000 files before, now
  only need about 50 seconds.

* Use the access time rather than create time.

* Need the user's confirm before really remove the file.

* Add the following options: (please see the code for detailed
  explanations)
  a) --extra-layer=<layer1>,<layer2>...<layern>
  b) -d is short for --remove-duplicated
  c) --stamps-dir=<dir1>,<dir2>...<dirn>
     # This one seems more useful than "-d".

  d) -y, --yes
  e) -v, --verbose