Added profile sanity check for bug #97867.
authorChris Gianelloni <wolf31o2@gentoo.org>
Tue, 5 Jul 2005 17:55:30 +0000 (17:55 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Tue, 5 Jul 2005 17:55:30 +0000 (17:55 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@738 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/stage1/stage1-chroot.sh

index 5eb91559f51823739bf4bb7a8459b05edff256ef..ebc87bbb5bc63a451c0543ce23c9c6131be2e712 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.284 2005/07/05 17:48:21 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.285 2005/07/05 17:55:30 wolf31o2 Exp $
+
+  05 Jul 2005; Chris Gianelloni <wolf31o2@gentoo.org>
+  targets/stage1/stage1-chroot.sh:
+  Added profile sanity check for bug #97867.
 
   05 Jul 2005; Chris Gianelloni <wolf31o2@gentoo.org>
   targets/support/bootloader-setup.sh:
index 4fa79e03e6027194c37ea556e63905ddbf390b98..2c64c8100d2578ff184bdc25b1b43d3ee14f01f2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.32 2005/04/29 21:31:32 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.33 2005/07/05 17:55:30 wolf31o2 Exp $
        
 
 . /tmp/chroot-functions.sh
@@ -20,6 +20,15 @@ export STAGE1_USE="$(portageq envvar STAGE1_USE)"
 export USE="-* build ${STAGE1_USE}"
 export FEATURES="${clst_myfeatures}"
 
+## Sanity check profile
+if [[ -z ${clst_buildpkgs} ]]
+then
+       echo "Your profile seems to be broken."
+       echo "Could not build a list of build packages."
+       echo "Double check your /etc/make.profile link and the 'packages' files."
+       exit 1
+fi
+
 ## START BUILD
 run_emerge "--noreplace ${clst_buildpkgs}"