Move distfile cache to /var/cache/genkernel/src and add check to make sure all distfiles are present

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@674 67a159dc-881f-0410-a524-ba9dfbe2cb84
cleanup-cruft
Andrew Gaffney 17 years ago
parent e0b7ea5ee7
commit 1a90fbf8f1

@ -2,6 +2,11 @@
# Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $ # $Header: $
09 May 2008; Andrew Gaffney <agaffney@gentoo.org> gen_funcs.sh, genkernel,
genkernel.conf:
Move distfile cache to /var/cache/genkernel/src and add check to make sure
all distfiles are present
09 May 2008; Chris Gianelloni <wolf31o2@gentoo.org> alpha/modules_load, 09 May 2008; Chris Gianelloni <wolf31o2@gentoo.org> alpha/modules_load,
ia64/modules_load, mips/modules_load, parisc/modules_load, ia64/modules_load, mips/modules_load, parisc/modules_load,
parisc64/modules_load, ppc/modules_load, ppc64/modules_load, parisc64/modules_load, ppc/modules_load, ppc64/modules_load,

@ -515,3 +515,12 @@ set_config_with_override() {
eval ${CfgVar}=\"${Result}\" eval ${CfgVar}=\"${Result}\"
} }
check_distfiles() {
for i in $BUSYBOX_SRCTAR $DEVICE_MAPPER_SRCTAR $LVM_SRCTAR $DMRAID_SRCTAR $E2FSPROGS_SRCTAR
do
if [ ! -f "${i}" ]
then
small_die "Could not find source tarball ${i}. Please refetch."
fi
done
}

@ -124,6 +124,8 @@ set_kernel_arch
setup_cache_dir setup_cache_dir
check_distfiles
dump_debugcache dump_debugcache
NORMAL=${BOLD} print_info 1 "Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..." NORMAL=${BOLD} print_info 1 "Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..."

@ -123,9 +123,9 @@ USECOLOR="yes"
GK_SHARE="/usr/share/genkernel" GK_SHARE="/usr/share/genkernel"
# Location of the default cache # Location of the default cache
CACHE_DIR="/var/cache/genkernel/%%ARCH%%" CACHE_DIR="/var/cache/genkernel"
# Location of DISTDIR, where our source tarballs are stored # Location of DISTDIR, where our source tarballs are stored
DISTDIR="/usr/portage/distfiles" DISTDIR="${CACHE_DIR}/src"
# Log output file # Log output file
LOGFILE="/var/log/genkernel.log" LOGFILE="/var/log/genkernel.log"
# Debug Level # Debug Level

Loading…
Cancel
Save