Commit 464f0d84 authored by KatolaZ's avatar KatolaZ

cache is now centralised

parent 8065234b
......@@ -21,7 +21,6 @@ ERR_PROCESS=32
ERR_FILES=64
## Conf variables
CGIT_URL="https://anonscm.debian.org/cgit/"
D1H_DIR=${HOME}/.d1h
CACHE_FILE=${D1H_DIR}/cache
CACHE_URL="http://pkgmaster.devuan.org/d1h_cache"
......@@ -259,10 +258,8 @@ handle_link(){
}
##
## rebuild the cache. At the moment the cache is only based on alioth,
## whose address is specifed in CGIT_URL
##
## FIXME!!! Allow multiple cgit sources (?)
## download the cache of Debian repos. The cache is kept at CACHE_URL
## and periodically updated by Devuan.
##
## function
......@@ -274,7 +271,6 @@ handle_cache(){
fi
echo "## $(date)" > "${CACHE_FILE}"
##curl "${CGIT_URL}" | parse_alioth >> "${CACHE_FILE}"
curl "${CACHE_URL}" >> "${CACHE_FILE}"
exit $?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment