summaryrefslogtreecommitdiff
path: root/functions/cache.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-26 11:55:07 +0200
committerDaniel Baumann <daniel@debian.org>2010-09-26 11:55:07 +0200
commitd47773e7d74d26c62d451e3ce950cdaf7749e09c (patch)
tree64ce640dd27515f65dd3cc6d852128d0ec10e392 /functions/cache.sh
parent113ddd069dda19136bdd51d79eca25a8dfbee776 (diff)
downloadvyos-live-build-tmp-cache.tar.gz
vyos-live-build-tmp-cache.zip
Updating.tmp-cache
Diffstat (limited to 'functions/cache.sh')
-rwxr-xr-xfunctions/cache.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions/cache.sh b/functions/cache.sh
index bae606dd2..72e6d5d15 100755
--- a/functions/cache.sh
+++ b/functions/cache.sh
@@ -25,6 +25,9 @@ Restore_cache ()
# without hardlinks
cp "${DIRECTORY}"/*.deb chroot/var/cache/apt/archives
fi
+
+ mkdir -p .stage
+ touch .stage/cache_$(echo ${DIRECTORY} | sed -e 's|/|_|g')
fi
fi
}
@@ -58,4 +61,6 @@ Save_cache ()
# Purging current cache
rm -f chroot/var/cache/apt/archives/*.deb
fi
+
+ rm -f .stage/cache_$(echo ${DIRECTORY} | sed -e 's|/|_|g')
}