From 6c236a9c2a7ec7ea1f8724b6ec8eaf65e8c374c6 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 25 Dec 2012 15:15:09 +0100 Subject: [PATCH] lib/functions.in: changed to test for $base/architecture/share/config.cache before trying to access it --- lib/functions.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/functions.in b/lib/functions.in index 45bdd3e..1a1c17f 100644 --- a/lib/functions.in +++ b/lib/functions.in @@ -587,7 +587,9 @@ rock_substitute() { # packages to cross-build correctly in stages 0 and 1. # create_config_cache() { - cat $base/architecture/share/config.cache + if [ -e $base/architecture/share/config.cache ]; then + cat $base/architecture/share/config.cache + fi if [ $createarchcache -eq 1 ]; then cat <<-EOT