nice informational message for non-native building
authorDaniel Robbins <drobbins@gentoo.org>
Thu, 6 Nov 2003 01:00:54 +0000 (01:00 +0000)
committerDaniel Robbins <drobbins@gentoo.org>
Thu, 6 Nov 2003 01:00:54 +0000 (01:00 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@45 d1e1f19c-881f-0410-ab34-b69fee027534

modules/targets.py

index d401aa0cd37adfe0ee831514a8f81ae7b2edc0a6..d9a67e47b305369bbef550d6af326a318669542e 100644 (file)
@@ -45,6 +45,13 @@ class generic_stage_target(generic_target):
                        fh.close()      
                #call arch constructor, pass our settings
                self.arch=self.subarchmap[self.settings["subarch"]](self.settings)
+               #self.settings["mainarch"] should now be set by our arch constructor, so we print
+               #a nice informational message:
+               if self.settings["mainarch"]==self.settings["hostarch"]:
+                       print "Building natively for",self.settings["hostarch"]
+               else:
+                       print "Building on",self.settings["hostarch"],"for alternate machine type",self.settings["mainarch"]
+                       
                self.settings["target_profile"]=self.settings["rel_type"]+"-"+self.settings["mainarch"]+"-"+self.settings["rel_version"]
                self.settings["target_subpath"]=self.settings["target_profile"]+"/"+self.settings["target"]+"-"+self.settings["subarch"]+"-"+self.settings["version_stamp"]
                st=self.settings["storedir"]