Add envscript warning to aid users who may not know what they are doing
authorEric Edgar <rocket@gentoo.org>
Wed, 14 Dec 2005 15:04:22 +0000 (15:04 +0000)
committerEric Edgar <rocket@gentoo.org>
Wed, 14 Dec 2005 15:04:22 +0000 (15:04 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@968 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py

index 6494380567ab3e58d2e2759602a56a9211f38051..4a0dabd303c928fc8d31f46696222dc25026c462 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.455 2005/12/13 22:52:21 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.456 2005/12/14 15:04:22 rocket Exp $
+
+  14 Dec 2005; Eric Edgar <rocket@gentoo.org>
+  modules/generic_stage_target.py:
+  Add envscript warning to aid users who may not know what they are doing
 
   13 Dec 2005; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
   examples/generic_stage_template.spec:
index 5d503df58d1f21c525ca1caabe121b6f1e455c9e..e990ea0e65d5285a5c2a77df91444da708d5d00c 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.98 2005/12/13 20:32:43 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.99 2005/12/14 15:04:22 rocket Exp $
 
 """
 This class does all of the chroot setup, copying of files, etc. It is
@@ -782,6 +782,15 @@ class generic_stage_target(generic_target):
                    if self.settings.has_key("ENVSCRIPT"):
                            if not os.path.exists(self.settings["ENVSCRIPT"]):
                                   raise CatalystError, "Can't find envscript "+self.settings["ENVSCRIPT"]
+                           
+                               print "\nWarning!!!!"
+                               print "\tOverriding certain env variables may cause catastrophic failure."
+                               print "\tIf your build fails look here first as the possible problem."
+                               print "\tCatalyst assumes you know what you are doing when setting"
+                               print "\t\tthese variables."
+                               print "\tCatalyst Maintainers use VERY minimal envscripts if used at all"
+                               print "\tYou have been warned\n"
+
                            cmd("cp "+self.settings["ENVSCRIPT"]+" "+self.settings["chroot_path"]+"/tmp/envscript",\
                                    "Could not copy envscript into place.",env=self.env)