On Wednesday 17 January 2007 10:07, Chris Gianelloni wrote: > It was a livedvd spec, so I'll just post the top. Allow me to state > that this worked perfectly before applying your patch, which, unlike my > usual care, I applied without bothering to test... ;]
whiner :p try the attached patch please any plans to implement any sort of test suite ? -mike
Index: modules/generic_stage_target.py
===================================================================
--- modules/generic_stage_target.py (revision 1206)
+++ modules/generic_stage_target.py (working copy)
@@ -57,11 +57,14 @@ class generic_stage_target(generic_targe
if self.settings.has_key("chost"):
hostmachine = self.settings["chost"].split("-")[0]
- else:
- hostmachine = os.uname()[4]
- if not machinemap.has_key(hostmachine):
- raise CatalystError, "Unknown host machine type "+hostmachine
- self.settings["hostarch"] = machinemap[hostmachine]
+ if not machinemap.has_key(hostmachine):
+ raise CatalystError, "Unknown host machine type "+hostmachine
+ self.settings["hostarch"] = machinemap[hostmachine]
+ else:
+ hostmachine = self.settings["subarch"]
+ if machinemap.has_key(hostmachine):
+ hostmachine = machinemap[hostmachine]
+ self.settings["hostarch"] = hostmachine
if self.settings.has_key("cbuild"):
buildmachine = self.settings["cbuild"].split("-")[0]
else:
pgp9RNC7SKkYL.pgp
Description: PGP signature
