~ubuntu-xen-org/xcp/master

« back to all changes in this revision

Viewing changes to tocache.sh

  • Committer: Jon Ludlam
  • Date: 2011-12-15 16:45:44 UTC
  • Revision ID: git-v1:50a5ecd4b9a36ce0f2b42cd10038a205788fe8a0
Untested new type of caching behaviour

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
mkdir -p ${thiscache}
25
25
 
26
 
isrsynced=`grep $1 rsynced || true`
27
 
 
28
 
if [ ! "x$isrsynced" = "x" ]; then
 
26
if md5sum --check $1.md5 --status; then
29
27
        ln ${cache}/latest/$1 ${thiscache}/$1 
30
28
else
31
29
        cp --preserve $1 ${thiscache}/$1