parent
5c543ed129
commit
cc0f336dcb
@ -0,0 +1,13 @@
|
||||
diff --git a/pym/cl_builder.py b/pym/cl_builder.py
|
||||
index ac2b774..f0bf9c5 100644
|
||||
--- a/pym/cl_builder.py
|
||||
+++ b/pym/cl_builder.py
|
||||
@@ -657,7 +657,7 @@ class cl_builder(color_print):
|
||||
open(digestfile,'w').writelines(map(lambda x:template%{
|
||||
'alg':x.upper(),
|
||||
'digest': \
|
||||
- process("%ssum",filename).read().partition(' ')[0],
|
||||
+ process("%ssum"%x,filename).read().partition(' ')[0],
|
||||
'filename':path.basename(filename)},["md5","sha1"]))
|
||||
except:
|
||||
return False
|
@ -0,0 +1,29 @@
|
||||
diff --git a/pym/cl_fill_install.py b/pym/cl_fill_install.py
|
||||
index fc01400..a8de226 100644
|
||||
--- a/pym/cl_fill_install.py
|
||||
+++ b/pym/cl_fill_install.py
|
||||
@@ -611,18 +611,17 @@ class fillVars(object, glob_attr):
|
||||
if not imagename:
|
||||
return ""
|
||||
d = DistributiveRepository()._getfromcontent(imagename)
|
||||
- if "linuxver" in d:
|
||||
+ if "linuxver" in d and d['linuxver'] != "0":
|
||||
return d['linuxver']
|
||||
- elif "ver" in d:
|
||||
+ elif "ver" in d d['ver'] != "0":
|
||||
return d['ver']
|
||||
- else:
|
||||
- if self.Get('os_install_linux_shortname') == \
|
||||
- self.Get('os_linux_shortname'):
|
||||
- return self.Get('os_linux_ver')
|
||||
res = DistributiveRepository.reDistName.search(imagename)
|
||||
if res:
|
||||
return res.groupdict()['ver']
|
||||
- return ""
|
||||
+ if self.Get('os_install_linux_shortname') == \
|
||||
+ self.Get('os_linux_shortname'):
|
||||
+ return self.Get('os_linux_ver')
|
||||
+ return "0"
|
||||
|
||||
def get_cl_pkgdir_path(self):
|
||||
return "/var/calculate/remote/packages/%s/%s" % (
|
@ -0,0 +1,16 @@
|
||||
diff --git a/pym/cl_vars_share.py b/pym/cl_vars_share.py
|
||||
index 8bfcf0d..347fc39 100644
|
||||
--- a/pym/cl_vars_share.py
|
||||
+++ b/pym/cl_vars_share.py
|
||||
@@ -456,8 +456,9 @@ class varsShare:
|
||||
pkgInfoDir = path.join(systemroot,'var/db/pkg/app-misc/')
|
||||
if not os.access(pkgInfoDir,os.R_OK):
|
||||
return None
|
||||
- metaPkgs = filter(lambda x:"calculate-meta" in x,
|
||||
- os.listdir(pkgInfoDir))
|
||||
+ metaPkgs = sorted(filter(lambda x:"calculate-meta" in x or \
|
||||
+ "%s-meta"%shortname.lower() in x,
|
||||
+ os.listdir(pkgInfoDir)))
|
||||
if metaPkgs:
|
||||
reFindVer = re.compile("(?<=\-)\d+\.?\d*\.?\d*")
|
||||
findVer = reFindVer.search(metaPkgs[0])
|
Loading…
Reference in new issue