diff options
author | Daniel Baumann <daniel@debian.org> | 2007-11-12 22:51:27 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:29 +0100 |
commit | 75196ecbd804a7a12d91a273bf98509037e77eec (patch) | |
tree | f6e03999fd86aff3dbfd48c366f139def5585227 | |
parent | 8321653cb36511324d576e65cb13b5c9b0c5f438 (diff) | |
download | live-build-75196ecbd804a7a12d91a273bf98509037e77eec.zip live-build-75196ecbd804a7a12d91a273bf98509037e77eec.tar.gz |
Removing the whole cache, not just the .deb cache in mini and minimal hooks, thanks to Franklin Piat <fpiat@bigfoot.com>.
-rwxr-xr-x | hooks/mini | 6 | ||||
-rwxr-xr-x | hooks/minimal | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -33,10 +33,14 @@ rm -rf /usr/share/info/* rm -rf /usr/share/zoneinfo/* rm -rf /var/cache/man/* -# Cleaning apt +# Cleaning apt lists rm -rf /var/lib/apt/lists mkdir -p /var/lib/apt/lists/partial +# Cleaning apt cache +rm -rf /var/cache/apt +mkdir -p /var/cache/apt/archives/partial + # Truncating logs for FILE in $(find /var/log/ -type f) do diff --git a/hooks/minimal b/hooks/minimal index ff57deb..5761abb 100755 --- a/hooks/minimal +++ b/hooks/minimal @@ -25,10 +25,14 @@ find . -name *~ | xargs rm -f rm -rf /var/cache/man/* -# Cleaning apt +# Cleaning apt lists rm -rf /var/lib/apt/lists mkdir -p /var/lib/apt/lists/partial +# Cleaning apt cache +rm -rf /var/cache/apt +mkdir -p /var/cache/apt/archives/partial + # Truncating logs for FILE in $(find /var/log/ -type f) do |