From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3142B1380DC for ; Wed, 5 Feb 2014 10:40:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7A8FE0B33; Wed, 5 Feb 2014 10:40:20 +0000 (UTC) Received: from venus.vo.lu (venus.vo.lu [80.90.45.96]) by pigeon.gentoo.org (Postfix) with ESMTP id B9C8EE0B37 for ; Wed, 5 Feb 2014 10:40:18 +0000 (UTC) Received: from ibiza.lux.tuxicoman.be (vodsl-8217.vo.lu [85.93.199.25]) by venus.vo.lu with SMTP (version=TLS\Tls cipher=Aes128 bits=128); Wed, 5 Feb 2014 11:39:32 +0100 Received: from terminatrix.lux.tuxicoman.be ([172.19.0.9]) by ibiza.lux.tuxicoman.be with esmtp (Exim 4.80.1) (envelope-from ) id 1WAzto-0002QU-BH for gentoo-catalyst@lists.gentoo.org; Wed, 05 Feb 2014 11:40:08 +0100 From: Guy Martin To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 09/11] Don't make cdtar mandatory. Date: Wed, 5 Feb 2014 11:40:04 +0100 Message-Id: <1391596806-14955-10-git-send-email-gmsoft@gentoo.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1391596806-14955-1-git-send-email-gmsoft@gentoo.org> References: <1391596806-14955-1-git-send-email-gmsoft@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: 96a1ef18-f760-43cb-9639-7ade73cc4163 X-Archives-Hash: 81cea9ce6e69a65d87c19a6577507c2a 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 7face15..8c59033 100755 --- 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() { -- 1.8.3.2