commit:     7f4db96b5089f251b2fcf4ae48b0055887d1549a
Author:     Guy Martin <gmsoft <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  5 10:40:04 2014 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Mon Mar 24 16:07:08 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=7f4db96b

Don't make cdtar mandatory.

On hppa, we don't need cdtar.

---
 targets/support/functions.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index b4335a5..311ed7b 100644
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -51,8 +51,12 @@ extract_cdtar() {
        # which will normally contains a pre-built binary
        # boot-loader/filesystem skeleton for the ISO.
        cdtar=${clst_cdtar}
-       [ -z "${cdtar}" ] && die "Required key cdtar not defined, exiting"
-       tar -I lbzip2 -xpf ${cdtar} -C $1 || die "Couldn't extract cdtar 
${cdtar}"
+       if [ -z "${cdtar}" ]
+       then
+               echo "No cdtar specified. Skipping."
+       else
+               tar -I lbzip2 -xpf ${cdtar} -C $1 || die "Couldn't extract 
cdtar ${cdtar}"
+       fi
 }
 
 extract_kernels() {

Reply via email to