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 D7D33138E20 for ; Wed, 19 Feb 2014 17:47:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA12BE0B96; Wed, 19 Feb 2014 17:47:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 05CC8E0B96 for ; Wed, 19 Feb 2014 17:47:51 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 38FFA33F8F9 for ; Wed, 19 Feb 2014 17:47:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 8BBF3188CE for ; Wed, 19 Feb 2014 17:47:48 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1392831755.0398f6f0786ae92f10d3adccf39dbea3a5cfab16.dol-sen@gentoo> Subject: [gentoo-commits] proj/catalyst:3.0 commit in: targets/support/ X-VCS-Repository: proj/catalyst X-VCS-Files: targets/support/functions.sh X-VCS-Directories: targets/support/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 0398f6f0786ae92f10d3adccf39dbea3a5cfab16 X-VCS-Branch: 3.0 Date: Wed, 19 Feb 2014 17:47:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: fa6dcde0-48af-4acc-871b-54ad7c9f82a3 X-Archives-Hash: 996550cfd004fa34290dbdd643e2fa0d commit: 0398f6f0786ae92f10d3adccf39dbea3a5cfab16 Author: Guy Martin gentoo org> AuthorDate: Wed Feb 5 10:40:04 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Wed Feb 19 17:42:35 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=0398f6f0 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 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() {