commit: 15b2b25bb9ace8a5155b493819428d026e621ce7
Author: Guy Martin <gmsoft <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 5 10:40:04 2014 +0000
Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Fri Feb 27 02:03:04 2015 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=15b2b25b
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 de37c19..f6faa61 100755
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -52,8 +52,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() {