Fix modules has no attribute register
authorEric Edgar <rocket@gentoo.org>
Mon, 7 Nov 2005 20:26:37 +0000 (20:26 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 7 Nov 2005 20:26:37 +0000 (20:26 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@880 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/generic_stage_target.py
modules/stage1_target.py

index 04288d3886dff1871d6c189c59e2152f738c73bc..bf9728c2a970992e3b063552f54f5da5ff0ffecc 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.370 2005/11/07 19:46:04 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.371 2005/11/07 20:26:37 rocket Exp $
+
+  07 Nov 2005; Eric Edgar <rocket@gentoo.org>
+  modules/generic_stage_target.py, modules/stage1_target.py:
+  Fix modules has no attribute register
 
   07 Nov 2005; Eric Edgar <rocket@gentoo.org>
   modules/generic_stage_target.py:
index 74b52216e71fe717f0fb9dffa11972d42072655a..f9fc2a8ba23326d3998fb87359f56eb80895dbed 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.73 2005/11/07 19:46:04 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.74 2005/11/07 20:26:37 rocket Exp $
 
 """
 This class does all of the chroot setup, copying of files, etc. It is
@@ -11,7 +11,6 @@ import os,string,imp,types,shutil
 from catalyst_support import *
 from generic_target import *
 from stat import *
-import pdb
 import catalyst_lock
 class generic_stage_target(generic_target):
 
index a9fab698f901a31825c46da47f0e7a8fdeed13ee..42fa954287e32d5424e5fb813485e57665af8940 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/stage1_target.py,v 1.11 2005/11/07 16:25:06 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage1_target.py,v 1.12 2005/11/07 20:26:37 rocket Exp $
 
 """
 Builder class for a stage1 installation tarball build.
@@ -47,11 +47,11 @@ class stage1_target(generic_stage_target):
                self.settings["CXXFLAGS"]=list_to_string(self.settings["cxxflags"])
 
         def override_ldflags(self):
-                if os.environ.has_key("LDFLAGS"):
-                    self.settings["LDFLAGS"] = os.environ["LDFLAGS"]
-                if self.settings.has_key("ldflags"):
-                    self.settings["LDFLAGS"]=list_to_string(self.settings["ldflags"])
+           if os.environ.has_key("LDFLAGS"):
+               self.settings["LDFLAGS"] = os.environ["LDFLAGS"]
+           if self.settings.has_key("ldflags"):
+               self.settings["LDFLAGS"]=list_to_string(self.settings["ldflags"])
 
-def reg(foo):
+def register(foo):
        foo.update({"stage1":stage1_target})
        return foo