Update utilities

atratsevskiy
parent ae30cd62d4
commit ffbaeef4c6

@ -1,4 +1,5 @@
AUX calculate-install-3.0.0-fix_install_grub.patch 717 SHA256 43af0af873c4bd612256c4cd16e6e2094b8bc424ffbcb4dedc1daa80bff4f290 SHA512 cf007e7c8206992f3bda1f29da1e1f618c121c5a1a9041b0742ce3454212bd5c8c77da9d2223cf9bba60f1b58c56e4616f805875f2dde0ea401218dbb5df1b1f WHIRLPOOL cce2ed5cd2b051ddf060b8d68b683589f21935b349e28851af95889c6fe727b8383e9bf62a4c67c4baa9872c38e29677f76dae7aaf123605a2fedfc90f77fb7a
AUX calculate-install-3.0.0-fix_lvm_and_setup_system.patch 13077 SHA256 26561e6677888397d17eca056c117bcfb36a95b1cd3089d20af23605a109f8ad SHA512 d4e4ad88bbf2f14156667c8c6975a036671b6026f6797729dd281f47990ddfeef2a30e0f9f032c73ac3465b9a997bbd5138d9d85bccc5a58e3a5e6e1cafda45d WHIRLPOOL 71f37f3d20661826001d83dc1fa3d06f116f6a01b9bb6f5d6f048d5a6d62ba91988e4b01cb20c0b07821301f7aeaf88f2a08c8e0b3fe70fb8c01a47a5d0da655
AUX calculate-install-3.0.0-fix_using_lvm.patch 890 SHA256 8ef0a9d577116f0d8bdb51ce9cd0963cd3aa1def55f5ce0dcde5ca4edbbd32e3 SHA512 be426006a58769f16ae1c89e9c309592f52647346e8006cf8072a0e569c318e33ef4285f73e3f4eece6116c4a0bd811e757ec177c71992ef8f9c1c38f4b7d31e WHIRLPOOL dce174e92b13bfee3f3299b6f6a403fde65bd11a3448a5833c2b074e67c57d60c9a3a045ff43ad8382a00da9718e7c47c62e5beb013ad6f1968de329a9de9e1e
AUX calculate-install-3.0.0-r3.patch 4482 SHA256 bcbde7ab43b4bab87985f0c0559d1ba6402e1118650c0e3d0b8e7076b6bf8515 SHA512 1b115c4b0e3b9777b23f39ba58cb511a52754b01e70e20f6b6c14a64a418f95e31b9adea7ebe46d8129e93a856752404aaceb6ea38d2acf6570831ddfb669b6f WHIRLPOOL 0ad0553c154927b314357a1c3305b313b7bf3fc756b4cb22f0e08f2e9743f0033e814c3f97a445454e5a08421a29438431a2a96d9a87ba8816e85ba748f7090d
AUX calculate-install-3.0.0_fix_migrate.patch 711 SHA256 47a49e82745e6fb387c6cc0964176bc9c6296c7fe1897ad16125657768db935e SHA512 63a9899b0efac3128a140b48ae3073a3bc7b585a6f4f6de9fdb880ed7071184bf8bc5feb7c99b06ae1b03c38efdc9ac21bdf072500ac713987000604f26f8290 WHIRLPOOL 62193d7898a6239aa02060a24106a81b018dc7da651683735293aba137a3ef05a385b54892d5106b73a459c5511288b48d9b0413157a151344f335156293f939
@ -12,6 +13,7 @@ EBUILD calculate-install-3.0.0-r2.ebuild 1364 SHA256 3504c06dc6df44d57384c5c3130
EBUILD calculate-install-3.0.0-r3.ebuild 1221 SHA256 5e808d8acf662d5f11dc92109359f10bfd9814874a2eba0e38ad0620b4231b1f SHA512 81af382126dee583415d3b0619162fd8dede9357bbdac1ddda40a6e005b72c583ddc6cfbc5670b393733a05dd3290b27d1b6b7903a2f13a179bf3f643b9e34e0 WHIRLPOOL 485940b696bdc803cbd1d9fd91bc3296dc2da466f73e62d97aa6fcebf1287b3bc50a8b2e18aad4e29593f8c1c869e67c32525885237280807df251c0976819e9
EBUILD calculate-install-3.0.0-r4.ebuild 1290 SHA256 66abd4dd2b09c98a3291d20eedce8ae12866d0356e5f263062d2d62e84b072a2 SHA512 385ce49df9ba5b3489821f85b322e5e69aefd0d9da2516766182bc43fe74c8fd872799a8e40697277ef286b0b436585854b9f4ab8b9d0f46f9dd7974dc76078d WHIRLPOOL 23b9286b2cb7a7dac0ffcc54168397b53e304fc42eee3b401f4ed2b9708de24007916b461acbbc328f9b4f5e4a599402a4204c82181b4bbcea381d2ced6bc60e
EBUILD calculate-install-3.0.0-r5.ebuild 1356 SHA256 9d42a7cee5adee0e5c5d01bd7a2f8fc4422a8ffa9caf064f2465a7c8fc7dc9ed SHA512 c65b297779bc364094f35555a5da43fa588968fb6f46596d896ef0b04c5125a8f0f8e25e1f647078a056cf4d99cd21f5ae6465b480f981932c4410e43d2f127e WHIRLPOOL f916bb3b9559ce5c9b52430bfe65cde991fe6eb8a1ea2006391577682237006f74b98343a77c6f14245d333ec35da32b5bcdf9292c2aab1c70c373be2a194044
EBUILD calculate-install-3.0.0-r6.ebuild 1433 SHA256 c5d477be47182c6573fb85a1bd7216b509f2b2a4dfd7efa26ad0260981cd7d8f SHA512 646f11335089943009484a4679e6a86d5b01828cbfff3b7a728ca99d745f51aac803e6110d786b00419254e24d525818d6b87aa5474b2b52a7edb0b909b177b4 WHIRLPOOL 639c8d530ce8b9ecfb4a9eb03fd8c0791afd5aa440e97083fa35697f8bdff6b60d7fbdc33096db7c84c50a8577893a9adaea9a87b2ad9edfcdc9a2221e2bb2ad
EBUILD calculate-install-3.0.0.ebuild 1110 SHA256 1efad795af86cb8689e92f2a87cb65862695ed882cce41fdea6fa184132be6f5 SHA512 677467e71b2ac542fdbab72655288122b824845258df6034c9e281f571bdfb7c833e8fbdf4fefee3a5ea5dc92f04bc0fcef37459da1fc38aee45f3828ca517a7 WHIRLPOOL f2b46cdd3812bd1f37d6fb5b7d4add55528daa6826cb8f82fdbbffa203950983ba5e24c8d00f47ee3fec1cd0ac285ccc83a992c2adc294ddac79d6c62c0dcbbe
EBUILD calculate-install-3.0.9999.ebuild 694 SHA256 bdbcb0cbf4b087c15b4ab8bc53da563ce5fa7fb4cf81ab8d318b065ab823b14d SHA512 c845b1af62b1a9743f72368a2a3b4c44805d9e1d68bc2d094ed926cc358bf5561b4f8c0d539ed89fec3b6e8ae5012f376686c263aff695352e5909aec678839e WHIRLPOOL 0b5d70056c6522068f78cbf61a501f5e53d22eae3f0d6d5c35613980c7dca195a78cdbed3a78bc0520ae7be62934d41a792e3ec5ec4e83b6f218ad6850b0f4b8
MISC ChangeLog 33827 SHA256 f31d9cca1055a4fbf38352f01ba9f72bf82597ff1a6436d211ac26d1acddb082 SHA512 0fc3b6602d1f04deecc324a790c8aec0dd92a75d506fbcb1f768c75fa9e0cf3e944e32c9f63225564d75dcb20ae6282a71d1bde288ff6b84b9767f0f822fb677 WHIRLPOOL 528d878653ff222395ea10db9ebe6c98ebf2bfe0774eac898b46659a26b0d7071d4a8fbc91ac3d58414cf4d74b6898efae6f03361068673f5bf9abec006dd4a3

@ -0,0 +1,54 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
PYTHON_DEPEND="2:2.7"
RESTRICT_PYTHON_ABIS="2.4 2.5 2.6 3.*"
inherit distutils eutils
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate3/${PN}/${P}.tar.bz2"
DESCRIPTION="The program of installation Calculate Linux"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS="amd64 x86"
IUSE="pxe minimal"
DEPEND="~sys-apps/calculate-lib-3.0.0
!<sys-apps/calculate-install-2.2.29
app-portage/layman
!app-misc/livecd-tools
sys-apps/iproute2[-minimal]
!minimal? ( sys-boot/grub
sys-apps/gptfdisk
>=sys-apps/util-linux-2.19.1
sys-fs/dosfstools
sys-fs/squashfs-tools
sys-block/parted )
pxe? ( sys-apps/calculate-server
net-ftp/tftp-hpa
net-misc/dhcp
net-fs/nfs-utils )"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# changes
epatch "${FILESDIR}/calculate-install-3.0.0-r3.patch"
epatch "${FILESDIR}/calculate-install-3.0.0-fix_install_grub.patch"
epatch "${FILESDIR}/calculate-install-3.0.0-fix_using_lvm.patch"
epatch "${FILESDIR}/calculate-install-3.0.0-fix_lvm_and_setup_system.patch"
}
pkg_postinst() {
einfo "For install wsdl for calculate-install perform:"
einfo " cl-core --append-variable cl_wsdl=calculate-install"
einfo " cl-core --append-variable cl_merges=calculate-install"
}

@ -0,0 +1,310 @@
commit e2b72b54c06f698ed98d5cff42c7824711f14e76
Author: Mike Hiretsky <mh@calculate.ru>
Date: Wed Aug 8 13:37:22 2012 +0400
Fix lvm installation, close variables, display errors
diff --git install/cl_install.py install/cl_install.py
index 3656e5e..762758b 100644
--- install/cl_install.py
+++ install/cl_install.py
@@ -186,67 +186,26 @@ class Install(color_print):
# cltObj = True if 'clt' in templates_locate else False
dirs_list, files_list = ([],[])
- listTemplatePaths = ["/var/lib/layman/calculate/profiles/templates",
- "/var/calculate/templates",
- "/var/calculate/remote/templates"]
- for location in templates_locate:
- if location in ("overlay", "local", "remote", "clt"):
- if len(listTemplatePaths) != 3:
- self.printERROR(\
- _("Error in template variable 'cl_template_path=%s'")\
- %str(listTemplatePaths))
- return False
- elif location == "local":
- if not os.path.isdir(listTemplatePaths[1]):
- continue
- self.clVars.Set("cl_template_path",
- [listTemplatePaths[1]], True)
- elif location == "remote":
- if not os.path.isdir(listTemplatePaths[2]):
- continue
- self.clVars.Set("cl_template_path",
- [listTemplatePaths[2]], True)
- elif location == "overlay":
- if not os.path.isdir(listTemplatePaths[0]):
- continue
- self.clVars.Set("cl_template_path",
- [listTemplatePaths[0]], True)
- elif location == "clt":
-# list_paths = ['/etc'] + \
-# os.environ.get('CONFIG_PROTECT').split()
-# for template_path in list_paths:
-# if not os.path.isdir(template_path):
-# continue
-# print template_path
-# self.clVars.Set("cl_template_path",
-# [template_path], True)
-# self.clTempl = ProgressTemplate(self.setProgress,
-# self.clVars,cltObj=True,
-# cltFilter=True)
-#
-# dirsFiles = self.clTempl.applyTemplates()
-# # cltObj = False
-# print dirsFiles
-# dirs_list += (dirsFiles[0])
-# files_list += (dirsFiles[1])
- continue
-
- self.clTempl = ProgressTemplate(self.setProgress, self.clVars,
- cltFilter=False)
-
- dirsFiles = self.clTempl.applyTemplates()
- if type(dirsFiles) in [list, tuple]:
- if len (dirsFiles) > 1:
- dirs_list += (dirsFiles[0])
- files_list += (dirsFiles[1])
- self.clVars.Set("cl_template_path", listTemplatePaths, True)
+ useClt = "clt" in templates_locate
+ self.clVars.Set("cl_template_path",
+ map(lambda x:x[1],
+ filter(lambda x:x[0] in templates_locate,
+ zip(self.clVars.Get('cl_template_location'),
+ self.clVars.Get('cl_template_path')))),
+ True)
+
+ self.clTempl = ProgressTemplate(self.setProgress, self.clVars,
+ cltObj=useClt,
+ cltFilter=False)
+
+ dirsFiles = self.clTempl.applyTemplates()
try:
if self.clTempl.getError():
self.printERROR(self.clTempl.getError())
return False
except AttributeError:
pass
- return (dirs_list, files_list)
+ return dirsFiles
def applyTemplatesFlash(self,directory):
"""Apply templates for root of system."""
diff --git install/cl_wsdl_install.py install/cl_wsdl_install.py
index a40c561..ae5a639 100644
--- install/cl_wsdl_install.py
+++ install/cl_wsdl_install.py
@@ -23,7 +23,7 @@ from soaplib.service import rpc, DefinitionBase
from calculate.core.server.api_types import ReturnedMessage
from calculate.core.server.api_types import ChoiceValue, Table, Option, Field, \
GroupField, ViewInfo, ViewParams
-from calculate.lib.datavars import VariableError
+from calculate.lib.datavars import VariableError,DataVarsError
#from cl_install import Install,DataVarsInstall
import cl_install
@@ -107,8 +107,10 @@ class catchExcept:
default = 'color:red;',
element = "error"))
view.groups.append(group)
- #for i in apply(traceback.format_exception, sys.exc_info()):
- # print i
+ if not isinstance(VariableError,DataVarsError,InstallError):
+ for i in apply(traceback.format_exception, sys.exc_info()):
+ print i,
+
return view
class Wsdl:
@@ -232,13 +234,13 @@ class Wsdl:
lang = dv.Get('os_install_locale_lang')
self.set_cache(sid,"install","lang",lang,smart=False)
dv.processRefresh()
+ self.set_cache(sid, 'install', "vars",dv,smart=False)
view = ViewInfo(dv,step=params.step,
expert=params.expert,
brief=params.brief,
has_brief=True,
allsteps=langChanged,
brief_label=_("Start installing"))
- self.set_cache(sid, 'install', "vars",dv,smart=False)
return view
def install_flash_vars(self):
@@ -272,10 +274,10 @@ class Wsdl:
dv = self.install_flash_vars()
else:
dv.processRefresh()
+ self.set_cache(sid, 'install_flash', "vars",dv,smart=False)
view = ViewInfo(dv,step=params.step,
expert=params.expert,
brief=params.brief)
- self.set_cache(sid, 'install_flash', "vars",dv,smart=False)
return view
def install_pxe_vars(self):
@@ -309,10 +311,10 @@ class Wsdl:
dv = self.install_pxe_vars()
else:
dv.processRefresh()
+ self.set_cache(sid, 'install_pxe', "vars",dv,smart=False)
view = ViewInfo(dv,step=params.step,
expert=params.expert,
brief=params.brief)
- self.set_cache(sid, 'install_pxe', "vars",dv,smart=False)
return view
def setup_network_vars(self):
@@ -351,10 +353,10 @@ class Wsdl:
dv = self.setup_network_vars()
else:
dv.processRefresh()
+ self.set_cache(sid, 'setup_network', "vars",dv,smart=False)
view = ViewInfo(dv,step=params.step,
expert=params.expert,
brief=params.brief)
- self.set_cache(sid, 'setup_network', "vars",dv,smart=False)
return view
def setup_video_vars(self):
@@ -391,10 +393,10 @@ class Wsdl:
dv = self.setup_video_vars()
else:
dv.processRefresh()
+ self.set_cache(sid, 'setup_video', "vars",dv,smart=False)
view = ViewInfo(dv,step=params.step,
expert=params.expert,
brief=params.brief)
- self.set_cache(sid, 'setup_video', "vars",dv,smart=False)
return view
def setup_locale_vars(self):
@@ -431,10 +433,10 @@ class Wsdl:
dv = self.setup_locale_vars()
else:
dv.processRefresh()
+ self.set_cache(sid, 'setup_locale', "vars",dv,smart=False)
view = ViewInfo(dv,step=params.step,
expert=params.expert,
brief=params.brief)
- self.set_cache(sid, 'setup_locale', "vars",dv,smart=False)
return view
def setup_boot_vars(self):
@@ -470,10 +472,10 @@ class Wsdl:
dv = self.setup_boot_vars()
else:
dv.processRefresh()
+ self.set_cache(sid, 'setup_boot', "vars",dv,smart=False)
view = ViewInfo(dv,step=params.step,
expert=params.expert,
brief=params.brief)
- self.set_cache(sid, 'setup_boot', "vars",dv,smart=False)
return view
def setup_system_vars(self):
@@ -507,8 +509,8 @@ class Wsdl:
dv = self.setup_system_vars()
else:
dv.processRefresh()
+ self.set_cache(sid, 'setup_system', "vars",dv,smart=False)
view = ViewInfo(dv,step=params.step,
expert=params.expert,
brief=params.brief)
- self.set_cache(sid, 'setup_system', "vars",dv,smart=False)
return view
diff --git install/variables/autopartition.py install/variables/autopartition.py
index 1be3e82..f1935c5 100644
--- install/variables/autopartition.py
+++ install/variables/autopartition.py
@@ -337,7 +337,7 @@ class VariableHrMemorySize(ReadonlyVariable):
return "0"
def humanReadable(self):
- return map(humanreadableSize,self.Get())
+ return humanreadableSize(self.Get())
class VariableClAutopartitionSwapSize(Variable):
"""
diff --git install/variables/disk.py install/variables/disk.py
index 018fe70..d0d8fee 100644
--- install/variables/disk.py
+++ install/variables/disk.py
@@ -28,7 +28,7 @@ from calculate.lib.datavars import (TableVariable,Variable,VariableError,
from calculate.lib.utils.device import (getUdevDeviceInfo,getDeviceType,
getPartitionType,getPartitionDevice,getRaidPartitions,
getLvmPartitions,getPartitionSize, humanreadableSize,
- getUUIDDict)
+ getUUIDDict,getCommonDeviceName)
from calculate.lib.utils.files import (listDirectory,pathJoin,readFile,FStab,
isMount)
from calculate.install.cl_distr import PartitionDistributive
@@ -769,10 +769,7 @@ class VariableOsLocationDest(LocationHelper,Variable):
return path.normpath(val)
return val
value = map(normpath,value)
- if len(value) == 1 and value[0] == "":
- return ["/"]
- else:
- return value
+ return map(lambda x:x or "/",value)
def choice(self):
if self.Get('cl_install_type') == 'flash': return ["/",""]
@@ -1102,6 +1099,12 @@ class VariableOsLocationSize(LocationHelper,SourceReadonlyVariable):
self.Get('cl_autopartition_disk_size')))
return mapDevSize
+ def get(self):
+ return map(lambda x:x or "",
+ map(self.getMap().get,
+ map(getCommonDeviceName,
+ self.Get(self.indexField))))
+
def getMapHumanReadable(self):
#return map(lambda x:humanreadableSize(x) if x else "",
# self.Get())
@@ -1112,6 +1115,13 @@ class VariableOsLocationSize(LocationHelper,SourceReadonlyVariable):
self.Get('cl_autopartition_disk_size',humanreadable=True)))
return mapDevSize
+ def humanReadable(self):
+ return map(lambda x:x or "",
+ map(self.getMapHumanReadable().get,
+ map(getCommonDeviceName,
+ self.Get(self.indexField))))
+
+
class VariableClUuidSet(Variable):
"""
Use or not UUID for /etc/fstab
@@ -1153,10 +1163,11 @@ class VariableOsInstallDiskDev(ReadonlyVariable):
type = "list"
def get(self):
- return map(lambda x:x[0],
+ return map(getCommonDeviceName,
+ map(lambda x:x[0],
filter(lambda x:x[0].startswith('/dev/') and x[1],
zip(self.Get('os_location_source'),
- self.Get('os_location_dest'))))
+ self.Get('os_location_dest')))))
class VariableOsInstallDiskUuid(ReadonlyVariable):
"""
@@ -1547,9 +1558,12 @@ class VariableOsInstallRootType(LocationHelper,Variable):
class VariableOsInstallRootDev(ReadonlyVariable):
def get(self):
"""Get install root device"""
- return self.Select('os_install_disk_dev',
- where='os_install_disk_mount',
- eq="/",limit=1) or ''
+ if self.Get('cl_action') == 'system':
+ return self.Select('os_install_disk_dev',
+ where='os_install_disk_mount',
+ eq="/",limit=1) or ''
+ else:
+ return self.Get('os_root_dev')
class VariableOsInstallFstabMountConf(ReadonlyVariable,DeviceHelper):
"""

@ -1,6 +1,7 @@
AUX calculate-lib-2.1.11-fix_getip.patch 6335 SHA256 b54e6353b18a312e42e3f3d17b1d45efa9f433fef6bbf48c4eed237a4bb829d8 SHA512 aa9bb1fd818af8321bcf3a7dd681f2fd4976819267e14d627aaffe7f788813b1a85579f6868defb056934f62ce8307f1effee72258fee06915b565f02ab80bb4 WHIRLPOOL c1dbdca583293743a5c7e6407ebfe5e62b3a58c44cd9a29571b6138dd7741a21edcf8819e893692f1362cf142f4fe21f08e3aa4da670c183648722af101cce39
AUX calculate-lib-2.1.11-fix_xpath.patch 329 SHA256 9e5674cd5fccea9c2242eb2ffaa829a1446a5bd16c6ba877760175960b0971cb SHA512 4ebd5806c0b57bb636ee8f958ecd13a18d5c660b5657fa0ae1c84707999ef453afa082e9f08fa0e95ab13a1be2952f4d996a15579ee125852205619497b06d51 WHIRLPOOL 8b0aaea3595c5830c5cabd5fbfaaed85cf6da73f1e3988e15dd6a175e1f59f87364d74f8273da5e0385de10f9f3a9e50588509a52ed45a17a5b2756a9eb963b9
AUX calculate-lib-2.2.29-fix_funcPkg.patch 1829 SHA256 3cb85b18119392ef7a903d7c3382f792f528235c14a7e9b2f71c703c339869fb SHA512 9bb7d9a2dd8829380460de9163524172af88297a038c9f8a9ff521e5f9abffc62b77fa3d83d9f875120797cb090ecc7e08d9495a1c4a9da2e4c8f4d987f6a160 WHIRLPOOL 2117c3c992d5d5e62b218ef673468c3ad22607e009793276185b61a60dd547ad14eca4d84583033d94f322eed0a69206d19e1337e52957f5cb0b1cec409ffbe3
AUX calculate-lib-3.0.0-fix_variables.patch 3431 SHA256 2ddf6bf1c277dbd9765d78589e89d95ad942489b22958e6ae93d3f1d1cfbeacb SHA512 7c7953fcd88207dea7b463371a6579e6270bfbad41bd6028e9298c1d89759a0adebc91ed5387e0a55fba35539ab8699c1fc20d2109c6101f13c6950072325fbd WHIRLPOOL f96bdf6482b049db5ff6d6d5e9cb6e5a95960047f61df049260e74951ec4e13304506216453aecb6c1fa288032f5ec753c3db9041e6168790321ce338c8ba877
AUX calculate-lib-3.0.0-r1.patch 2983 SHA256 bef063b3b4f77157cf1d002a41467d3758d9c6d8687c75bdb9dd6e35f17a994d SHA512 4ad78c447ed696c27f4a706f441392e81bb30fe5426dbb48411a13df5bf9102719fe8848bdee74430f0187eb8b2719f7a8b8883289d93bd7e35753b3a3d39a0d WHIRLPOOL 3f33f46e666054bd6d6c3e2f8e35a7c18d6c500cfd7c3bf6bb6d3db2a101ab5f333d164506e82b82c78ea07c6627617c93ffc62435a9fb8f5c8159af397a4afc
DIST calculate-lib-2.1.11.tar.bz2 61687 SHA256 62976c08d4fb4810389ace6f5a99abb5a962f6c8d9053ff943d0669480fb5599 SHA512 e3bc2168a55367cf19ad3a27921b53e5e845643238bf171209ab29752c91b5d4d338a2120774764ac1c79abd93f2deff8680f8faa1407940984ea9fd6a199e67 WHIRLPOOL 0ced92ea493dd8db02b0ae1514ebbb51ee76dc6f441b4a38c984c39da2121fb81dd1f2e840c4c5b71a117a12817a2a269d85676288202aa9801f69727e3338dc
DIST calculate-lib-2.2.29.tar.bz2 120378 SHA256 fc79bf29059ffb1519b6356cba34ebecb2e8c3222a29735f479254c371d363a3 SHA512 dc3c2c20cf0c5389b412b0cd2cba316b3d2367e981e147b3a94b6502ba329b598c7ccad5cd3462b3d7e884d05574c99b0e2e39df63e51d22221b86b783cb0925 WHIRLPOOL b3cdf6010c48d7a86a9f5a0c72effa8f0cc8ec0186fa28977132211dcaa5a3fe4a20ad3ec0b556478a9def1dc0e7c15404e3ab38080f986a4620634ee6570462
@ -10,6 +11,7 @@ EBUILD calculate-lib-2.1.9999.ebuild 566 SHA256 77ae492c11f6eaca2e9c605621ccd46d
EBUILD calculate-lib-2.2.29-r2.ebuild 907 SHA256 2a6717b1e0fc15152866d44556eac6df94683c8226d972f97a69e07ebcefffd5 SHA512 0fdb0d3df3d719a508504696b24132ac1761ce12d273c25c490578969cff3f9f5ae6c6aa7b9ddda6032e45dee356ddc495751dcc67214060831311f5bd781b8f WHIRLPOOL 7d2c5f47e2c79d1ebca3d889035fee3f8f5c90b178c5853a8f38e8b0b00373c38ef7e7bfd24f00e27e38f46fb2804aee1b415f385e19f458d6c2a75eb505a0fc
EBUILD calculate-lib-2.2.9999.ebuild 741 SHA256 49daa77ce88484438f3afbd1af7d3391589bdc9eed1e42dd61e123e9ee51260f SHA512 0ff0d6757afd4375888e956ac5195139ee59b889c87dc513ebb7fce9f28010e238a2b8d7e41cdc089cefb4860d971a262a369a615255645cd6746fa48fb5a9a2 WHIRLPOOL e50ed9e774f4c614c91497c1ca53a915f109cc587fe2244eb620afbddbdd70c57fb565a8a3fd60c3b392374c6349d6561f9ceb715808c07384cfda8eda9b8653
EBUILD calculate-lib-3.0.0-r1.ebuild 797 SHA256 b4c446e6824ca8426cf3b94bd174f04310a50374923f697884db80e5b7ca5e17 SHA512 249e11041e4da9ec988dd409d94d711d3a9b3ec8dea81f979484747817ad381faae7c1febe0fbdaacedfc8f2d50da1226837f0c4942e59896bf1c10c1184356a WHIRLPOOL d7531ac8823c7563520ba2293b155c5e526f88b8262f624ec8378661e4ce669db78ee1d3c5fd6297213a43930927b0364a95d4f9c28fea0940141b4e93d55826
EBUILD calculate-lib-3.0.0-r2.ebuild 876 SHA256 4223d10b987a9e9881ab7abbec85e5e783ac14f722111b3d7acea54c529bf2fd SHA512 427de25237b2615c576d8e2280b4195b78f2842427bd73552cd6af7a84854370f15d640cce016e084343472acd61408f96fda0e7855ec1de3c74d6433f381d34 WHIRLPOOL 2ebac0c80133df53779812c45ecaf1396b92710192c29a5295d95af5844f3df655c452d8a09a916855c52952fd31bbc28203fbc9a7439ba7c9a74d9797311ba7
EBUILD calculate-lib-3.0.0.ebuild 690 SHA256 c89c29f5de3f70146e98f15035366506933f03e8a5066b1ad55aeccbebdeae2c SHA512 a7277c2e5fa64a5e5840be7fc8d3df9a31f41926386c5fe6a9bed31eeed6321af5881c218d9ce7eeb12aee518edb682b438e10397dcb815cc63645100430e43e WHIRLPOOL 8f19e4d46381e26fec81e20fa35599f4658b3891d6372c921a8b1354ad3b1821ea9c78f71caebf54610e0b5aacfb6e6ded018e155e1979322406a0ac1e823d09
EBUILD calculate-lib-3.0.9999.ebuild 719 SHA256 5de5bc693735cbf24c7ceeb9882ed338c9cb186b5ea6be18e279d2102ec4dac3 SHA512 896352c27de758e598940c4d447d162911aba3c5e5650a447b10a5b96fc16615917caba5113aba4a3cd8b2e71c382d4089ebe568567c35c9068f116dee236262 WHIRLPOOL 1d78117009ec3c84d1e93a2f8f2df2c313c6b178832135fe5353e04ddc141e72185962ac29ded1eefd058eefbb20e0f81305eb659dfaafcda45f1614b40da63f
MISC ChangeLog 29678 SHA256 2d3176ee3c60fb474f938b05f6118e17b06f600a6a654def33754f15c32e78e2 SHA512 7f8039d00f0a4cfffe9d4a016ce451a51586d92c195693c24dc3c3498a4133c138dce3a6bf687ee64c9e613eafbe7807199dae515b221aab329490770e7ea1a3 WHIRLPOOL f0859381bfc90c257cf02aee15392776a612b25d1299a3703fa091aedce9bfc0dcfe8dba42265de3bd2e904cd122a62c9f21622fd189a4c32bf088f7ec8e9307

@ -0,0 +1,38 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
PYTHON_DEPEND="2:2.7"
RESTRICT_PYTHON_ABIS="2.4 2.5 2.6 3.*"
inherit distutils eutils
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate3/${PN}/${P}.tar.bz2"
DESCRIPTION="The library for Calculate 3"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS="amd64 x86"
IUSE="minimal"
DEPEND="!minimal? ( dev-python/py-smbpasswd )
>=dev-python/pyxml-0.8
sys-apps/iproute2
sys-apps/pciutils
sys-fs/lvm2
sys-fs/mdadm
dev-python/pyinotify
sys-apps/file[python]"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# changes
epatch "${FILESDIR}/calculate-lib-3.0.0-r1.patch"
# fix variables
epatch "${FILESDIR}/calculate-lib-3.0.0-fix_variables.patch"
}

@ -0,0 +1,94 @@
commit f26ea6f4ca72377fb020d7308a7926dfd5b6ae07
Author: Mike Hiretsky <mh@calculate.ru>
Date: Wed Aug 8 13:41:59 2012 +0400
Add function for install,fix fill variables
diff --git calculate/lib/cl_template.py calculate/lib/cl_template.py
index 831705d..5547101 100644
--- calculate/lib/cl_template.py
+++ calculate/lib/cl_template.py
@@ -3931,7 +3931,7 @@ re.M|re.S)
self.dictTemplates)
# Считаем количество шаблонов
dirsTemplatesExists = filter(lambda x: os.path.exists(x), dirsTemplates)
- if not dirsTemplatesExists:
+ if not dirsTemplatesExists and not self.cltObj:
self.setError(_("No such template directories") +\
": %s"%", ".join(map(lambda x: "'%s'"%x ,dirsTemplates)))
return (self.createdDirs, self.filesApply)
diff --git calculate/lib/utils/device.py calculate/lib/utils/device.py
index cf3aea3..50351bc 100644
--- calculate/lib/utils/device.py
+++ calculate/lib/utils/device.py
@@ -401,3 +401,9 @@ def refreshUdev():
except:
pass
process(udevadm,"trigger","--subsystem-match","block").success()
+
+def getCommonDeviceName(dev):
+ """
+ Get common device name (example: LVM -> /dev/dm- and etc)
+ """
+ return getUdevDeviceInfo(name=dev).get('DEVNAME',dev)
diff --git calculate/lib/variables/X11.py calculate/lib/variables/X11.py
index 78f1df6..ed5c49e 100644
--- calculate/lib/variables/X11.py
+++ calculate/lib/variables/X11.py
@@ -38,7 +38,7 @@ class VariableOsX11Resolution(Variable):
return ""
except OSError:
return ""
- lines = processXDpy.readLines()
+ lines = processXDpy.readlines()
reRes = re.compile("dimensions:\s+(\d+)x(\d+)\s+pixels")
searchRes=False
for line in lines:
diff --git calculate/lib/variables/__init__.py calculate/lib/variables/__init__.py
index 37e0cd5..a79d5ea 100644
--- calculate/lib/variables/__init__.py
+++ calculate/lib/variables/__init__.py
@@ -1,3 +1,5 @@
+from calculate.lib.datavars import ReadonlyVariable
+
import X11
import locale
import env
diff --git calculate/lib/variables/env.py calculate/lib/variables/env.py
index 849563f..e948553 100644
--- calculate/lib/variables/env.py
+++ calculate/lib/variables/env.py
@@ -50,6 +50,20 @@ class VariableClEnvPath(Variable):
type = 'list'
value = list(zip(*_envData)[1])
+class VariableClTemplateData(TableVariable):
+ """
+ Aliases to templates path
+ """
+ source = ["cl_template_location","cl_template_path"]
+
+class VariableClTemplateLocation(Variable):
+ """
+ Name to templates
+ """
+ type = 'list'
+ value = ["overlay","local","remote"]
+
+
class VariableClTemplatePath(Variable):
"""
Path to information file on server
diff --git calculate/lib/variables/system.py calculate/lib/variables/system.py
index 3135816..5f6dc4d 100644
--- calculate/lib/variables/system.py
+++ calculate/lib/variables/system.py
@@ -68,7 +68,7 @@ class VariableOsRootDev(ReadonlyVariable):
dfProcess = process('df','/',envdict={'LANG':'C'})
if dfProcess.failed():
return ""
- dfLines = dfProcess.readLines()
+ dfLines = dfProcess.readlines()
if len(dfLines)>1:
root_dev = dfLines[1].split(" ")[0].strip()
if root_dev:

@ -9,6 +9,7 @@ EBUILD calculate-utilities-3.0.0-r4.ebuild 610 SHA256 4b2b13c5779f33fc01935777c9
EBUILD calculate-utilities-3.0.0-r5.ebuild 610 SHA256 dacf058b30e96af33df007ef1d0f48b9543fe52f4e243dcfb10affce222ed9f7 SHA512 0ec2b73eb120d0f874bd49816a12535c091c7800c86004985fccd2c6f80319bd2f6c47ba4f6036d8818c5f96f813a87683a69d3109796fd19de421d058105538 WHIRLPOOL 1d2104623f8eb5912acca6dbc8c1005ce3a4f08d4d3536c09722db28047793bc1ab26e16ca48bbd3eca74987ada9aa6472270f5b3275653ebc16549bdb719bbd
EBUILD calculate-utilities-3.0.0-r6.ebuild 610 SHA256 9635803a381a3d5b70ef5bd2d194f6b8c59d5c58793e45e1fd7cd5a5e7cfa9da SHA512 0868c019076c440efdce7787779bd71d948c30f0257b027f634d796438c6c750a4dc4864b51f7dd83552867f3728cfbc8e7dfcfaee879ddd0c6099037bc4c752 WHIRLPOOL 89c447f6213580d806c4815279651ace916aece9ae99b4acda4ab5a94b6799938269d40dc16878990a1180c4025eece2768e2df16911fa1701f55b1b159de5df
EBUILD calculate-utilities-3.0.0-r7.ebuild 610 SHA256 a272175f495e4256dc65a3cc4bee7c4e21f66cc5f2705508486777e68b300f6d SHA512 38e21a5f9c2a205799c4b93923339aa17ddebdeb59ea8ca59414d4b72fbad012b547ac35fd4f6cb984996197727e507e4922eff6b026b13c081be235a170aef4 WHIRLPOOL 29948834f516e9c346c2ab2dc5d6f3271f9d8371d9024189ef391ff8338139c947f3b3b6a1234372cfb3264e9b9b140730f89cc2c0aa3f5932e846d914aa3992
EBUILD calculate-utilities-3.0.0-r8.ebuild 610 SHA256 063bd6863534895384ce084109d446f1448ac638d41c46af3cfed188201837ee SHA512 a6206fe80ac4604956aa60cd6cc88cb40271c6e7b685840674ab836b43570b4989a54185c83a0e1a13cd3e02ffd1acb48f1cd8cd29a5a72614c03a6b81dc306d WHIRLPOOL 7a6e4c62af4147d596395951ed86827bb9a0613d9e918f64b220cf2c35766e555ddafc1f165f2345a134ff46c8d34bea6300a22ea95afb446d6ac125819efa96
EBUILD calculate-utilities-3.0.0.ebuild 595 SHA256 0b9aeeb84105488a72bf2ed1f8874ada0524e5be004f7fd197cda5158b99da1c SHA512 b89198e5290ac66a4a18d344f77ebc773ae4af977005dd96cd2eb22f125d6035970d698957cfb848d56734e1cc8a2d8ecd5e65b501421ab7153481a501f473a8 WHIRLPOOL 99579fc6b3170695e0db58d432a932ea117c35a9fd2b0896d5018f6b5ab8c25c270e039a343d877214897c546ab891c6f862422d5c170d6f7282841abcd947f6
EBUILD calculate-utilities-3.0.9999.ebuild 552 SHA256 d6519794625722093224801b703a0363929a034a1189b46a2c01cc2327138e59 SHA512 6dbb450db2ab1003a79ff32878c8928f93f53f0af7c46707d073dcff4f2befebc9fbcf5085b396fa4625735c2a987f041c4345884edde0924c1bc14c5d3f92c8 WHIRLPOOL 8403f0072318a3e425df82cb5480df941854044f0d6b04280a6ad1b9bdc1beff907127df44aaecd2818cdcf8399a9463c64a08bcfc34583bac4f8317d9294758
MISC ChangeLog 38731 SHA256 7e70a0bc1f3b34c0011f3874773a698a4bb96eb6d3dad10903575156bb8578bc SHA512 2de466ea990b9eac702b81fd097c3f5d06d1f4db1a4bd1d1b7380b45e551f6fd62c16564ecfc810246157d3ef1113ae373041580e70981d44752e50ed6134bc0 WHIRLPOOL 5ca0cee1ad0e9419f91ec11a9629b9a29db9fcbed4f5ae0aef1f8a2170ff58112c8580d61884c56ee410a0abc201fa8f4419cea35077fc8bb84e733f6fa6f4db

@ -0,0 +1,24 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
DESCRIPTION="Calculate Utilities meta package"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS="amd64 x86"
IUSE="cl_consolegui cl_console"
RDEPEND="${RDEPEND}
=sys-apps/calculate-install-3.0.0-r6
=sys-apps/calculate-i18n-3.0.0
=sys-apps/calculate-lib-3.0.0-r2
=sys-apps/calculate-core-3.0.0-r2
cl_consolegui? ( =sys-apps/calculate-console-gui-3.0.0-r2 )
cl_console? ( =sys-apps/calculate-console-3.0.0-r1 )
"
Loading…
Cancel
Save