Remove unsetting of ARCH for callback and change set_kernel_arch debug to use print_info
authorAndrew Gaffney <agaffney@gentoo.org>
Thu, 13 Mar 2008 11:59:08 +0000 (11:59 +0000)
committerAndrew Gaffney <agaffney@gentoo.org>
Thu, 13 Mar 2008 11:59:08 +0000 (11:59 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@639 67a159dc-881f-0410-a524-ba9dfbe2cb84

ChangeLog
gen_arch.sh
genkernel

index e27555dda81bb99de616168bcc76f4df0144e934..8e0b65c9ca3359dc4fbf5604b687ac14a9910fe1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  13 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> gen_arch.sh, genkernel:
+  Remove unsetting of ARCH for callback and change set_kernel_arch debug to
+  use print_info
+
   13 Mar 2008; Andrew Gaffney <agaffney@gentoo.org> gen_cmdline.sh:
   It helps to actually add the handling for the --integrated-initramfs option
 
index 484436db36f9f13dd1feb9b909973f05934a8b1b..5dd5c6bad0fcbad2d502e6b51badf354889b0194 100755 (executable)
@@ -78,5 +78,5 @@ set_kernel_arch() {
                        ;;
        esac
        export KERNEL_ARCH
-       echo "DEBUG: set_kernel_arch: KERNEL_ARCH=${KERNEL_ARCH}"
+       print_info 2 "KERNEL_ARCH=${KERNEL_ARCH}"
 }
index 552205b7318173a690e6860e54d26ff4f6e9652d..30608b53fb25c88e16f5a48961e79a670da8a5a5 100755 (executable)
--- a/genkernel
+++ b/genkernel
@@ -280,15 +280,11 @@ then
        if [ "${CALLBACK_ESCAPE}" -eq '0' ]
        then
                echo
-               echo "DEBUG: callback: ARCH=${ARCH}"
-               ORIG_ARCH=${ARCH}
-               unset ARCH
                echo
                eval ${CMD_CALLBACK} | tee -a ${LOGFILE}
                CMD_STATUS="${PIPESTATUS[0]}"
                echo
                print_info 1 "<<< Callback exit status: ${CMD_STATUS}"
-               export ARCH=${ORIG_ARCH}
                [ "${CMD_STATUS}" -ne 0 ] && gen_die '--callback failed!'
        else
                echo