Updating.

This commit is contained in:
Daniel Baumann 2010-09-26 11:55:07 +02:00
parent 113ddd069d
commit d47773e7d7
2 changed files with 13 additions and 0 deletions

View File

@ -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')
}

View File

@ -35,6 +35,14 @@ Exit ()
done
fi
# Saving package cache
if ls .stage/cache_* > /dev/null 2>&1
then
_CACHE="$(basename .stage/cache_* | sed -e 's|cache_||' -e 's|_|/|g')"
Save_cache ${_CACHE}
fi
return ${VALUE}
}