From 827b2473d9a1391a4d63a892c4150e5d6c0bf341 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Thu, 24 Apr 2008 02:03:40 +0000 Subject: [PATCH] Added a get_libdir call and fail if we don't have a valid LIBDIR when using debug. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1401 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 5 +++++ targets/support/chroot-functions.sh | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index ab2616d6..46805449 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 # $Id: $ + 24 Apr 2008; Chris Gianelloni + targets/support/chroot-functions.sh: + Added a get_libdir call and fail if we don't have a valid LIBDIR when using + debug. + 23 Apr 2008; Chris Gianelloni targets/support/livecdfs-update.sh: Only copy the handbook icon if one exists. diff --git a/targets/support/chroot-functions.sh b/targets/support/chroot-functions.sh index 041de496..f90a4d93 100755 --- a/targets/support/chroot-functions.sh +++ b/targets/support/chroot-functions.sh @@ -288,7 +288,11 @@ show_debug() { echo "KERNEL_ABI: $(portageq envvar KERNEL_ABI)" echo "MULTILIB_ABIS: $(portageq envvar MULTILIB_ABIS)" echo + echo "LIBDIR: $(get_libdir)" + echo fi + [ -z "$(get_libdir)" ] && \ + echo "Your profile is broken! LIBDIR is empty!" && exit 1 } run_default_funcs() { -- 2.26.2