Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 347213 | Differences between
and this patch

Collapse All | Expand All

(-)a/gen_funcs.sh (-6 / +3 lines)
Lines 250-262 setup_cache_dir() Link Here
250
if [ "${CLEAR_CACHE_DIR}" == 'yes' ]
250
if [ "${CLEAR_CACHE_DIR}" == 'yes' ]
251
then
251
then
252
	print_info 1 "Clearing cache dir contents from ${CACHE_DIR}"
252
	print_info 1 "Clearing cache dir contents from ${CACHE_DIR}"
253
	CACHE_DIR_CONTENTS=`ls ${CACHE_DIR}|grep -v CVS|grep -v cpio|grep -v README`
253
	while read i
254
	
255
	for i in ${CACHE_DIR_CONTENTS}
256
	do
254
	do
257
		print_info 1 "	 >> removing ${i}"
255
		print_info 1 "	 >> removing ${i}"
258
		rm ${CACHE_DIR}/${i}
256
		rm "${i}"
259
	done
257
	done < <(find "${CACHE_DIR}" -maxdepth 1 -type f -name '*.tar.*')
260
fi
258
fi
261
259
262
}
260
}
263
- 

Return to bug 347213