From: Andrew Gaffney Date: Fri, 9 May 2008 16:13:09 +0000 (+0000) Subject: Move distfile cache to /var/cache/genkernel/src and add check to make sure all distfi... X-Git-Tag: v3.4.10.902~78 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a90fbf8f1af349f104899c569f239e8110a560a;p=genkernel.git 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 --- diff --git a/ChangeLog b/ChangeLog index a5d1338..eb10368 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 09 May 2008; Andrew Gaffney 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 alpha/modules_load, ia64/modules_load, mips/modules_load, parisc/modules_load, parisc64/modules_load, ppc/modules_load, ppc64/modules_load, diff --git a/gen_funcs.sh b/gen_funcs.sh index 30f4b81..0363ac1 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -515,3 +515,12 @@ set_config_with_override() { 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 +} diff --git a/genkernel b/genkernel index aa9e576..b45fb10 100755 --- a/genkernel +++ b/genkernel @@ -124,6 +124,8 @@ set_kernel_arch setup_cache_dir +check_distfiles + dump_debugcache NORMAL=${BOLD} print_info 1 "Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..." diff --git a/genkernel.conf b/genkernel.conf index d1291b3..9b09ad1 100755 --- a/genkernel.conf +++ b/genkernel.conf @@ -123,9 +123,9 @@ USECOLOR="yes" GK_SHARE="/usr/share/genkernel" # 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 -DISTDIR="/usr/portage/distfiles" +DISTDIR="${CACHE_DIR}/src" # Log output file LOGFILE="/var/log/genkernel.log" # Debug Level