From: John P. Davis Date: Mon, 11 Oct 2004 15:31:39 +0000 (+0000) Subject: fixed a whole bunch of indentation errors X-Git-Tag: CATALYST_2_0_6_916~919 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=76e4b76af7393b5a674cfebf7a0578d4ef501a73;p=catalyst.git fixed a whole bunch of indentation errors git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@454 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/modules/netboot.py b/modules/netboot.py index e9d5b70c..5d3af157 100644 --- a/modules/netboot.py +++ b/modules/netboot.py @@ -1,6 +1,6 @@ # Distributed under the GNU General Public License version 2 # Copyright 2003-2004 Gentoo Technologies, Inc. -# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/netboot.py,v 1.2 2004/10/11 14:19:30 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/netboot.py,v 1.3 2004/10/11 15:31:39 zhen Exp $ """ Builder class for a netboot build. @@ -31,18 +31,18 @@ class netboot_target(generic_stage_target): else: loopy=addlargs["netboot/packages"] - for x in loopy: - self.required_values.append("netboot/packages/"+x+"/files") + for x in loopy: + self.required_values.append("netboot/packages/"+x+"/files") except: raise CatalystError,"configuration error in netboot/packages." generic_stage_target.__init__(self,spec,addlargs) if addlargs.has_key("netboot/busybox_config"): - file_locate(self.settings, ["netboot/busybox_config"]) + file_locate(self.settings, ["netboot/busybox_config"]) if addlargs.has_key("netboot/kernel/sources"): - file_locate(self.settings, ["netboot/kernel/config"]) + file_locate(self.settings, ["netboot/kernel/config"]) elif addlargs.has_key("netboot/kernel/prebuilt"): file_locate(self.settings, ["netboot/kernel/prebuilt"]) else: @@ -65,7 +65,7 @@ class netboot_target(generic_stage_target): # build packages if self.settings.has_key("netboot/packages"): - mypack=list_bashify(self.settings["netboot/packages"]) + mypack=list_bashify(self.settings["netboot/packages"]) try: cmd("/bin/bash "+self.settings["sharedir"]+\ "/targets/netboot/netboot.sh packages "+mypack) @@ -103,10 +103,10 @@ class netboot_target(generic_stage_target): # create image myfiles=[] if self.settings.has_key("netboot/packages"): - if type(self.settings["netboot/packages"]) == types.StringType: - loopy=[self.settings["netboot/packages"]] - else: - loopy=self.settings["netboot/packages"] + if type(self.settings["netboot/packages"]) == types.StringType: + loopy=[self.settings["netboot/packages"]] + else: + loopy=self.settings["netboot/packages"] for x in loopy: print x, self.settings["netboot/packages/"+x+"/files"] @@ -116,10 +116,10 @@ class netboot_target(generic_stage_target): myfiles.append(self.settings["netboot/packages/"+x+"/files"]) if self.settings.has_key("netboot/extra_files"): - if type(self.settings["netboot/extra_files"]) == types.ListType: - myfiles.extend(self.settings["netboot/extra_files"]) - else: - myfiles.append(self.settings["netboot/extra_files"]) + if type(self.settings["netboot/extra_files"]) == types.ListType: + myfiles.extend(self.settings["netboot/extra_files"]) + else: + myfiles.append(self.settings["netboot/extra_files"]) try: cmd("/bin/bash "+self.settings["sharedir"]+\