Fix installation of new version of the ditributives.

Fix detect march.
Fix detect os_install_linux_ver.
netsetup
Mike Hiretsky 14 years ago
parent a4fc927cc7
commit 2f6fd49aa5

@ -142,10 +142,11 @@ class DistributiveRepository:
extname = "dir"
d = self.ini_to_dict(path.join(filename,
'etc/calculate/calculate.ini'))
if d and path.exists(path.join(filename,'lib64')):
d['march'] = 'x86_64'
else:
d['march']= 'i686'
if not d or not "march" in d:
if path.exists(path.join(filename,'lib64')):
d['march'] = 'x86_64'
else:
d['march']= 'i686'
if d:
d['ext'] = extname
d["name"] = varsShare.getShortnameByMakeprofile(filename) or \

@ -567,6 +567,8 @@ class fillVars(object, glob_attr):
d = DistributiveRepository()._getdistrinfo(imagename)
if "linuxver" in d:
return d['linuxver']
if "ver" in d:
return d['ver']
else:
if self.Get('os_install_linux_shortname') == \
self.Get('os_linux_shortname'):

@ -764,10 +764,6 @@ class otherfilesCopy(scanDirectory):
{'src':pathname,'dst':pathJoin(self.target,pathname)})
return True
class cl_install(color_print, SignalInterrupt):
"""Primary class for templates appling and system installation"""

Loading…
Cancel
Save