-- Les
Name : cobbler
Version : 0.8.2-2
<-- ##### Start Patch ##### -->
--- action_import.py 2008-03-18 21:48:40.000000000 -0400
+++ /usr/lib/python2.4/site-packages/cobbler/action_import.py 2008-03-18 22:08:11.000000000 -0400
@@ -565,7 +565,23 @@
elif x.find("ia64") != -1:
foo["result"] = "ia64"
return
-
+
+
+# This extra code block is a temporary fix for rhel4.x 64bit distro ARCH identification-- L.M.
+ for x in fnames:
+ if not x.endswith("rpm"):
+ continue
+ if x.find("kernel-largesmp") != -1:
+ print _("- kernel header found: %s") % x
+ if x.find("i386") != -1:
+ foo["result"] = "x86"
+ return
+ elif x.find("x86_64") != -1:
+ foo["result"] = "x86_64"
+ return
+ elif x.find("ia64") != -1:
+ foo["result"] = "ia64"
+ return
def learn_arch_from_tree(self,dirname):
"""
<-- ##### End Patch ##### -->
_______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools