Update translations

atratsevskiy
parent 3289226d5b
commit 61388359f0

@ -3,6 +3,7 @@ AUX calculate-i18n-3.0.0_beta3-r2.patch 1664 SHA256 fef2fee015a5882762fc8f0c82c3
AUX calculate-i18n-3.0.0_beta3-r3.patch 1836 SHA256 03235a570e4620943fdf8c2074d1b1313758e96847dfaf4da0317b735a75a3e4 SHA512 1ce873ce914c703bc8729b6fdd3020b622695f0c470c191e274d0e74ab95b268bfbfbb51b81929dc3f5ccdf020eadd5f7141f0ee42dff90125eb3ce03fc07459 WHIRLPOOL 3e4ad2768375cd4838e455c128b65f7adb3f308816c9253cf266f620ae966959eba3d41bed988001590d60c605ff6a5d1f273b1a92e09095db6c8394b59d5f74
AUX calculate-i18n-3.0.0_beta3-r4.patch 71226 SHA256 de075f03f50d8f9fc50689a6fc0f8ac307b333c7dc4e97d7d161a2b1117ad1d7 SHA512 d6ac5dfc5fa4029534d4683c2f90c59600c1bab4076263781df274ab124488932d114f764048145f1fa7e072baba9bac3446fb6268d74edb9de04fcb086105fc WHIRLPOOL c097cad16e830df207c112f57eae956ad985e45a546d0eab31d9b1c7adca04fea720559d7a02e81a19f2f654190e76d3a45606b72eace01817349dcaab8685ab
AUX calculate-i18n-3.0.0_beta3-r5.patch 71302 SHA256 90c881d6b451ee3be0af8726e90de4485c879f99c0e40d31d8a1102b835a3ecd SHA512 03e4fc5dbbad1b49e177444ff1a0fbb929beead4595a11d70bbe26bd700f3810441c0c4be6f9348cae383337e23aa0a9f12c733a486a7dee815648e9fe67b38c WHIRLPOOL 10b0e1954244b4635c7ac3a7b668d2fc4dc1c1ff45a3c3e6f5f6568bd618347e6d19dc901cfdf9a558cb804be0f0ec1545bd932c014aa76be428c7db0b59ac15
AUX calculate-i18n-3.0.0_beta3-r6.patch 89068 SHA256 33bd2e2d35bf39c126f5adfd57940c3599d25c9a2405ca5d0e80d2439fdbf515 SHA512 8ba2be65bad20eae3a15f729db7953533b2d1b0a31d88e718c8aa289cbdb553e5b025e56aa331a3ce3a7b44a96b0a8e5eb4e6e0c09e16816669668c2e622192c WHIRLPOOL 4d38e389530710e88cb58b76645b9cbb87ce97e78167e4cace193888a045bad85f3b4875bdabd984a8db86ab26d1d4ecd500fb77daf8d15d8359f154c91fc4b8
DIST calculate-i18n-2.2.28.tar.bz2 32694 SHA256 899cef9485c48747f5810394728d1abe8473312faba1a6a9d1fb1fe8f4989fb8 SHA512 629598e8bb52eae68f2925f573c34851614466dc5ee7b26949097e5efc9c48c839b725c971060ab71b31d2d1ef94f9adbd54d6a72e6c88b1ae64d58bf549971f WHIRLPOOL 31f2c25a76729937f934df90ad37724430552c1e5422e0d7783fb2d8bcaa6c0ad89702e58780b11372521cd1e0f52239bb03d1f7523b8ed9cf704e78856c2568
DIST calculate-i18n-2.2.29.tar.bz2 33457 SHA256 200b362bff00f90fae91fa86393e461a73ae607ef427a5990c85b54d842a65c9 SHA512 ada70a2940764571d590e589d17e8ee1d9ab2a51ef71142d575338a54f20f8cc8dd9d869bdaea5e33968a131f5e2ade35ae327aaae611d099383694ded9a8b7c WHIRLPOOL b47d72a78942a963e283d8c77d9a53104aee540ab0d71d14b9c0de6ddb2ae4cefff52d75542c0e8c6473c66a5aa6b86a71467691e8ac8b78cc37ed2a4e98958d
DIST calculate-i18n-3.0.0_alpha5.tar.bz2 36270 SHA256 c130c4948f5b7b7e9352de0cbcc72d63ce548ff5f450ac238245d87e904604d5 SHA512 8eb8d64f702db9b120bbb0b335c2b619e751ef46649c16712b1c4a6aeeed4ad000077c1284ec5e3ec54b3bede2949a2b6d6059c648928fabe131a87fb510f7ff WHIRLPOOL d6f44c03047a93224a4a85c428231e9eb5c39b9d1404e469d3477293bce7309c75f34838716da485e9f72d91b61f5fda0ef4b65dd8a12618affb73a8ac872816
@ -22,6 +23,7 @@ EBUILD calculate-i18n-3.0.0_beta3-r2.ebuild 624 SHA256 c2431f848e5c9cb47806aed01
EBUILD calculate-i18n-3.0.0_beta3-r3.ebuild 624 SHA256 86f4e4843152fca07971a834862902ccc924e88b8dac91ca2729e715bcac8f1b SHA512 ccdf7739d8c047c7984dfea01692ae71de773ed466fccfd38334de762ab68abdd2c1e966ba3b66131bee4d7ea50f0a4be5f1d1538ad5143aa863b70a0ce49423 WHIRLPOOL 419717bd13902b35cc6e649b25497b67bbc637e90620f567396e3c09e88c83b80788d098f7d68c36faa48521a3f6eee47bcec7e917d5007ab9af2dafc101d22e
EBUILD calculate-i18n-3.0.0_beta3-r4.ebuild 624 SHA256 8e462f0ad02c3e352160bf851266d5e18ab5fb4ec7be7c600dfb8cd765a809db SHA512 c1b3322c34a10722095bc59b9e01adea446c1d91276f2612656c15806c334be56af6ae47ea1ccb3f46ebc1009cb3ca543f8467bdfd870a18baf21a5c829115ad WHIRLPOOL 185e1477760faee31c4916c65963de77b1809cf4aeceeb7ef642bd5de5972a517d4477cd362d0e7b99421296f14084e1c86ada52597c96ccd366c2e1cb83565e
EBUILD calculate-i18n-3.0.0_beta3-r5.ebuild 624 SHA256 be9fbc0097abeebd5e6153fcc03480e9ba2cdc1e21d7c9238fe44a84cefe6d91 SHA512 eca625133662e5f343a97dfe928ff1fef5f0d7daedd2ebdd49eef2287e3a8f9c6c0bd7d67728aa1c1489ac638b11bb3ef36434af7c958cb09c40b2a749d1223e WHIRLPOOL 60baab95c2929ca95e99076ee184f529daac579a3a0cbfe01e3717c8c7ba5ea0700a36a64a44a66a4effd808da0d0094f3f70f30044ac56495aa4f88cfd187d0
EBUILD calculate-i18n-3.0.0_beta3-r6.ebuild 624 SHA256 21cbfebdfba7ce9ab85da46deb52355c5d96915746c7c251cad8b21053404214 SHA512 cac43394ed1ad658e877f968e9d6ac13eb06dc46b518df50f04d35e994d66e1649f6269050aa19de11a08aac613de8b2b13fe17671caddac8619cbe487fd292e WHIRLPOOL f4929b14d3a082c16cc3ce00fcb3c334847a9977755181b4807ab03aed9f55de458475ded5b5eede0e2d0636315dfc6f3f6225bb117f0b94546cbce1993441df
EBUILD calculate-i18n-3.0.0_beta3.ebuild 504 SHA256 75856220162150d442a10b2961c23036636a0f09abb134b71bf7e0410bc72afe SHA512 d845b762a37a007b122567b49c1d88739cef720a6187ca2bb80db4a111f8e9fe0def005a2e187d3f970a105de866d76d5bc21fd6397b7d5ae86b6cb548ef21fa WHIRLPOOL 2ca4df2da41b5ca67d38e37b93e08d9e11292d260e29c478d2e3006849f8559c2f1252212ad4424867341c07fc3b8a6bdde7b38c9aca7a93df3a4da03e6b9d9a
EBUILD calculate-i18n-3.0.9999.ebuild 509 SHA256 55fd4fde87b256127c8b6c59723883c4f86b36a747349fddb9253899b00e8b5e SHA512 950d15ec58ae64e085a6b43f0c8845ed1a344671db1409385760dac7606a1cbba5458637ce3ea8e0fb8e2bda0ef7fbbe5923a5bbce56faf1f0ae99a2c1e19937 WHIRLPOOL bbfcf3ae13f9ec5ba4863488401cf8be7d7a0171eb7a1a1198ffef68c392199cfbca553be87fd01e2e90568aec61b4ab6db2fc6b4e14427ce371cbd621d86fdd
MISC ChangeLog 6171 SHA256 250f8a9836f5a3bd98b6ed83196df7b7e2c1159f3079e628017c14bc44ef5963 SHA512 deab6da15b0690167b8ac22b38aab2c101a37e6b3de02b7861e1066b209e41851adeb0ed7d4f1e990ce66007f2b01b9546a5f9dc297847cae74d1d3620b8f173 WHIRLPOOL fa139d49b147c42e22ecff90c40aee114d3069857987bc9be0042eb1d2424d8dee4fdc34e6e7dc6ef305adc9314286ffe45815b77b0f9f66c091390c6d69e5a8

@ -0,0 +1,28 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
inherit distutils eutils
SRC_URI="ftp://ftp.calculate.ru/pub/calculate/calculate3/${PN}/${P}.tar.bz2"
DESCRIPTION="The utilities for assembling tasks of Calculate Linux"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=sys-apps/calculate-lib-3.0.0_beta3"
DEPEND="sys-devel/gettext
${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# fix translate
epatch "${FILESDIR}/calculate-i18n-3.0.0_beta3-r6.patch"
}

@ -10,6 +10,7 @@ AUX calculate-install-3.0.0_beta3-fix_icon.patch 779 SHA256 5807a778cbbaa73c7fc3
AUX calculate-install-3.0.0_beta3-fix_names.patch 763 SHA256 d6f4bea659d80a8638bd72bc450fa4025fa9a4a25666021af87db8fc3637b538 SHA512 36c81078eaa071f5934e09cc1838a88a3228fd518df2118ec35e1f0158ba2188818b1c1daa3ba13620d98a86d48a7eee26c5048dc23e6dadda086c5821f9f15f WHIRLPOOL 9c1e6473db87392f2bf096b5106e6be883a47413f2f613598ffb6f6ab251c66637711739a04332da4b8b9b867740e6313556d6af8790f7e3ca3d08cef8473661
AUX calculate-install-3.0.0_beta3-fix_pxe.patch 1045 SHA256 a782f429b7f518d05f526f4c64693591e22b63b54a41a08d2630c5bdc42ec426 SHA512 2fdd159bc22e52049c2fe50e235a99bd1e1d7b5accc862e3d9b32cdb6551673adf4e2e592811121cb33343b1d3ecefb0be03dcf0477275d73d6065e380527875 WHIRLPOOL 14b2262575c4b57e02db6106c87817de6920e4024b0b64e6bbd7c7855275c0f497e1ea5d1139bd13ced3c1e59cf1b92d8f06c317026332acbc581cd85f175465
AUX calculate-install-3.0.0_beta3-locate_templates.patch 9426 SHA256 f2ddbc3c0b8108914ed00f3bda0e83186469a2d3f9eb2d4c22e9b4b830dd464f SHA512 8cee9e47e844ca7d88920972ade9a79a640413a58eec78b021ea109566cc24e4373a0f8375546b6f872ca87e086ab3b29a1722a13955727a4d472572e1b4384c WHIRLPOOL 6f4f341b720abe110010e8ef5429bc05ca776845134bad804b4e493078ed6bd09d4398e713395931d10976d81d1816d9177ad0ebe5ca6f3a7f70841887d8165f
AUX calculate-install-3.0.0_beta3-r10.patch 42402 SHA256 bae4dfe43a0cf7f8f456788e490539478cb7f7788ce7130d106a1ab5f9f50050 SHA512 0fbd346d7e91de686439e129e8abca7716691961722f50f00aeb176e9792c485ac5ea3c8cf3381d3b16749ca1dba66cfaa5bf20a904d675b0364ef5a429b383e WHIRLPOOL a8db1ddaa4de19261f92c27713d9361402591cebdd3f73dc598ab08e8cc430cc69d39b0e78022e0611886132926cd3fd624d81f275818c30381991b6cf07fc87
AUX calculate-install-3.0.0_beta3-r6.patch 10115 SHA256 447ea5fbde01773f681fe099c186d09b547497d33b57799a70071dafd1f2a501 SHA512 ede57ce36d26a2f67b115411317e14573c1348285fd59d10c4c2c3a36a53503f9fb596fb8b6e98f25c19cb383bf8ed92c0c17f07eb2f540ef1764b3811d4332d WHIRLPOOL b1abee3006ea56c0d18728a92cd444b0bc56059b230735c91030ad4f59aa6f3d476eb6263e8925936b40ec627d41be1a0fac76f101c7a2cababfceb38eb349a9
AUX calculate-install-3.0.0_beta3-r7.patch 10294 SHA256 ba7039729babf8c3704c64e395de95a98c9a5d01c4afe08e3b57b0d07ae64ddd SHA512 9bdd62af37ecb356a35f1317cb58ce4d2f2d449f4aa4c4c8f03058a50ca08acef96c5adc3fe0f19c92c962535081a1ff8e74334f4bc1490c41499a3e113dbb5c WHIRLPOOL f39a40ba326161401bff3d864ca8224ca1b276b02ed552eb53ee329fb77f818e5463ab1a39bcf02e95865d3a6a331fe0d58657d3f6fc41dd59dd9b9bfcb0dc58
AUX calculate-install-3.0.0_beta3-r8.patch 10731 SHA256 3c3b9fcfdc8027b3e3c67c8ffebc1af41a0016f7f42b6d9729170b42135215d1 SHA512 79453aadfeeb0aa9780c90b296caf7379bbd33aad70d9676a64008ec5a4214ea326c59a3e2fe4602972c19bc612f66f4c30af075934f961fc073d487f7c73d86 WHIRLPOOL d929bcad2830f9154680aa857e92a8c81e16c9aa6499c3ad1b4993dd88ccf8dec17db57471b10efa7d7349f30386d7d6e5d34294d5eaca46b83e4be2775a7c4a
@ -35,6 +36,7 @@ EBUILD calculate-install-3.0.0_beta2-r3.ebuild 1175 SHA256 8755c87f56eb7c956b657
EBUILD calculate-install-3.0.0_beta2-r4.ebuild 1274 SHA256 00c0bb00c363306670faab47c542c8107586c1b505f3209f100557bcd1579d58 SHA512 e212abbefb693623510782f1351636e63d5850cb9e3a62779405f26c50d3bdb5caeaf2b10e662f919a52f51ee42e1b5632ace183f5591d3985dba08d1b01576a WHIRLPOOL ec733fd8ece3c14de558bc3c664917a7ee065cef7b6890654467748516fdddd52c428ae603bf54a8a3c6fcd9da9716ae03092b8b608f1dffc9dfe3f774c4dbdf
EBUILD calculate-install-3.0.0_beta2-r5.ebuild 1186 SHA256 a4106db96251a37ef6720c262a37baaaae35b38907dc82f0ca9c373538985bcc SHA512 4d9c6a55f22741b7ae74b3bcb9f970345efb8759d2547391f67e73802a96571b488c62154c1a089fa1d64481ad96aaeef8502370958ac7812b9608c47c939251 WHIRLPOOL b08e288b72d803881a7edbcbc86203bd517aea3cfa00062b8af68ef6449b3f3657f0639093d18e5e075670222be75bedef5e8b7fd1bf1dc1412f52fe0c82ce6d
EBUILD calculate-install-3.0.0_beta3-r1.ebuild 1167 SHA256 2a21024a3c215c712310ba0bc449fbe5708e2e8427dc104cff49ed88b58cd664 SHA512 741426453bf30efb008a74dc08732bc637c64601b0ccea952e88f1c3e1db5f9f40d6b1f550ad26bc6314c2e65ee200f2be97c87e96c8af88e17494db9186fc34 WHIRLPOOL 009b043e6bbf7eb6ae9064b1a46ffd0d04a93a150a55f9a41454704b4c9590cf3a410981315329e2b59855ad559a87942d2fcc73927af1237502c141df4908dc
EBUILD calculate-install-3.0.0_beta3-r10.ebuild 1160 SHA256 8538d83abeadc7a226344ee0d8f26f857c31b77ff5e887deb7d8f8cb4ace9eab SHA512 58d6237b09b79b66fc98c391bc0b2fe6834fb7acad3a50ac40dcda31927658a1a8e73f098f7ff9dc0ead9cf4bf788812cf752d89aa7f3e1c21409821adcc8c0d WHIRLPOOL e9c8a5c5eeae93ca22737e8bf358e347d01231414e2166c43d8e36f0b7c446122fbf25fc3392b1fbafbdccbdbd688708a993cb3e0a1ecbf719af7eb75bdaaa4e
EBUILD calculate-install-3.0.0_beta3-r2.ebuild 1256 SHA256 93dc4f4863bd00d7df6b1d864371a586dc236bdbd743dfe0a1026910ba893ba6 SHA512 f69d95cfffebc8f5a1ba755f276ea6fa92e812508d9c66f4b63f34ae4a4131ef6c0542c38ddfb6a084c920f6bdf4d1bdbdd0a7f6584459c60e16c989e1f508b0 WHIRLPOOL 9eedc7caa9849a9c4661f4d71bf9f2f903fdcd9ab9baaab1799d0b84233986454565627ddbf7784fab8c97820d683ddb882bd763a7876af28d36523f5d2dcf15
EBUILD calculate-install-3.0.0_beta3-r3.ebuild 1333 SHA256 752b4dddfd99a3358fa796ac03f57898d3fd261b4c441f5048a000d756c484d4 SHA512 1b2e6d9535cd14a780573c4ad6f058727d55b7f5d39d73e841ca16e8d50df51e776fe79fc8dfa1b18bc276a0c86e441a0c23bbee5409abd2304acf2a0dab3c1f WHIRLPOOL 5ade12a600af4e0c483d48a3178a60c555937757a275a608472a23db7c4e546c95e0e9eb3c5c2e63042c3b39e8d566a2b90f7ff8f14aae5ec06352a9e1f506f5
EBUILD calculate-install-3.0.0_beta3-r4.ebuild 1412 SHA256 08d9622fd1e38f56e09cdd80d1ec2e5f866172537fc9bbbfa646c53c2fcc480c SHA512 5ee186eccf3644fd5e02dc8a622035f96af04b8a70c147693fc52f5c81ea308fb15f94413d2256d8735a118467da78b3340e5ad624589e1427dd537fc196523c WHIRLPOOL d415b9053d5f60d9506a95612957159125435956c2ad2e31ae17b416a2875ce82505d309ea25c1b149c8d794a2cb2d01201791e458508e406e86deeacad92cbc

@ -0,0 +1,48 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="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_beta3
!<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}"
# locate tamplates
epatch "${FILESDIR}/calculate-install-3.0.0_beta3-r10.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,896 @@
diff --git data/calculate data/calculate
index 23aaee8..3e24e28 100644
--- data/calculate
+++ data/calculate
@@ -98,7 +98,7 @@ create_nonroot_user() {
configure_users() {
if which cl-desktop &>/dev/null
then
- for user in $(variable_value cl_migrate_user | sed -r "s/[][,']//g")
+ for user in $(variable_value cl_migrate_user | sed -r "s/,/ /g")
do
HOME_DIR=`getent passwd $user | awk -F: '{ print( $6 ); }'`
if [[ $user == "root" ]] || [[ -f $HOME_DIR/.calculate/ini.env ]]
@@ -111,10 +111,10 @@ configure_users() {
start() {
/usr/sbin/cl-core --append-variable cl_wsdl=calculate-install
- /usr/sbin/cl-core --append-variable cl_merge=calculate-install
+ /usr/sbin/cl-core --append-variable cl_merges=calculate-install
install_video_driver
LANG=C create_nonroot_user
- LANG=C /usr/sbin/cl-core --method configure_system --no-progress --live
+ LANG=C /usr/sbin/cl-core --method setup_system --no-progress --live
LANG=C configure_users
/usr/sbin/env-update
diff --git install/cl_apply_template.py install/cl_apply_template.py
index 025642d..076c75c 100644
--- install/cl_apply_template.py
+++ install/cl_apply_template.py
@@ -87,7 +87,7 @@ class updateConfFiles(color_print):
return False
clTempl = templateClt(self.clVars)
if not cltTemplatePath.endswith(clTempl.extFileTemplate):
- self.printERROR(_("extension of the file '%s' not 'clt'")
+ self.printERROR(_("the extension of file '%s' is not 'clt'")
%cltTemplatePath)
return False
calcPkg = self.clVars.Get("cl_name")+"-" + self.clVars.Get("cl_ver")
@@ -102,7 +102,7 @@ class updateConfFiles(color_print):
return False
if nameFile is True:
if clTempl.executedFiles:
- self.printWARNING(_("Template %s was executed")
+ self.printWARNING(_("Template %s was applied")
%cltTemplatePath)
else:
self.printWARNING(_("Template %s not applied")
diff --git install/cl_apply_template_cmd.py install/cl_apply_template_cmd.py
index 402864d..d1187a9 100644
--- install/cl_apply_template_cmd.py
+++ install/cl_apply_template_cmd.py
@@ -25,7 +25,7 @@ from calculate.lib.utils.files import listDirectory,pathJoin
from calculate.lib.cl_lang import setLocalTranslate
setLocalTranslate('cl_install3',sys.modules[__name__])
-USAGE = _("%prog [options] path_to_clt_file")
+USAGE = _("%prog [options] path_to_the_clt_file")
COMMENT_EXAMPLES = _("Apply all templates to all packages")
diff --git install/cl_distr.py install/cl_distr.py
index 99e579d..881f98e 100644
--- install/cl_distr.py
+++ install/cl_distr.py
@@ -547,12 +547,12 @@ class MultiPartitions:
notFoundAttr = set(dictDataPart.keys()) - set(argv.keys())
if notFoundAttr:
raise DistributiveError(_("The following attributes "
- "(%s) are not specified")\
+ "are not specified: (%s)")\
%", ".join(map(lambda x:"DataPartition.%s"%x, notFoundAttr)))
unnecessaryAttr = (set(dictDataPart.keys()) ^ set(argv.keys())) -\
set(dictDataPart.keys())
if unnecessaryAttr:
- raise DistributiveError(_("Failed to use (%s) attributes")\
+ raise DistributiveError(_("Failed to use attributes (%s) ")\
%", ".join(map(lambda x:"DataPartition.%s"%x, unnecessaryAttr)))
else:
partObj = DataPartition()
@@ -794,19 +794,18 @@ class PartitionDistributive(Distributive):
"""Checking mount point"""
if isMount(dev):
raise DistributiveError(
- _("Failed to format %s, because this partition is mounted")%dev)
+ _("Failed to format %s: this partition is mounted")%dev)
def formatPartition(self, dev,format="reiserfs",label=""):
"""Format partition"""
if not format in self.formatUtilities:
raise DistributiveError(
- _("Specified format of '%s' is not supported")%format)
+ _("The specified format of '%s' is not supported")%format)
if dev in map(lambda y: y.split(" ")[0],
filter(lambda x: x.startswith("/"),
open("/proc/swaps"))):
raise DistributiveError(\
- _("Failed to format %s, because this partition "
- "is used as swap")%dev)
+ _("Failed to format %s: this partition is used as swap")%dev)
self._checkMount(dev)
if not os.access(dev,os.W_OK):
raise DistributiveError(_("Failed to format the partition") +
@@ -887,11 +886,11 @@ class PartitionDistributive(Distributive):
filter(lambda x: x.startswith("/"),
open("/proc/swaps"))):
raise DistributiveError(\
- _("Failed to execute 'mkswap %s', as the swap partition is used"
- " by the current system") %dev)
+ _("Failed to execute 'mkswap %s': the swap partition is used "
+ "by the current system") %dev)
if isMount(dev):
raise DistributiveError(
- _("Failed to format %s, because this partition is mounted")%dev)
+ _("Failed to format %s: this partition is mounted")%dev)
execStr = self.formatUtilities["swap"]%dev
res,errmes = self.runOsCommand(execStr)
if res == 0:
@@ -959,10 +958,10 @@ class ArchiveDistributive(Distributive):
res,mes = self.runOsCommand("tar xf %s -C %s/"%
(archfile,directory))
else:
- raise DistributiveError(_("Unknown archive type by '%s'")%
+ raise DistributiveError(_("Unknown archive type '%s'")%
archfile)
if res != 0:
- raise DistributiveError(_("Error during unpacking\n%s")%mes)
+ raise DistributiveError(_("Unpacking error\n%s")%mes)
def unpackTo(self,directory):
"""Unpack currect archive to directory"""
@@ -1231,7 +1230,7 @@ class FlashDistributive(PartitionDistributive):
self._umountDirectory(mp)
else:
raise DistributiveError(
- _("Failed to format %s, because this partition is mounted")
+ _("Failed to format %s: this partition is mounted")
%dev)
def getType(self):
@@ -1257,7 +1256,7 @@ class FlashDistributive(PartitionDistributive):
**kwargs)
else:
raise DistributiveError(
- _("Installation on a Flash does not support %s")%
+ _("Flash install does not support %s")%
source.__class__.__name__)
class ScratchDistributive(Distributive):
@@ -1409,5 +1408,5 @@ class PxeDistributive(Distributive):
**kwargs)
else:
raise DistributiveError(
- _("Installation for PXE does not support %s"%
+ _("PXE install does not support %s"%
source.__class__.__name__))
diff --git install/cl_install.py install/cl_install.py
index a5f53ef..5f952fc 100644
--- install/cl_install.py
+++ install/cl_install.py
@@ -181,14 +181,71 @@ class Install(color_print):
"""Apply templates for root of system."""
#self.clVars.Set("cl_root_path","/", True)
self.clVars.Set("cl_chroot_path","/", True)
- self.clTempl = ProgressTemplate(self.setProgress,self.clVars,
- cltFilter=False)
- dirsFiles = self.clTempl.applyTemplates()
- if self.clTempl.getError():
- self.printERROR(self.clTempl.getError())
- return False
- else:
- return dirsFiles
+ templates_locate = self.clVars.Get('cl_templates_locate')
+
+# 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)
+ try:
+ if self.clTempl.getError():
+ self.printERROR(self.clTempl.getError())
+ return False
+ except AttributeError:
+ pass
+ return (dirs_list, files_list)
def applyTemplatesFlash(self,directory):
"""Apply templates for root of system."""
@@ -368,7 +425,7 @@ class Install(color_print):
else:
sleep(waittime)
raise InstallError(
- _("Failed to found partition %s after changing the activity")%
+ _("Failed to find partition %s after changing the activity")%
partition)
def installSyslinuxBootloader(self,target):
@@ -687,7 +744,7 @@ class Install(color_print):
self.endTask()
# migrate users
- self.startTask(_("Migrate users"))
+ self.startTask(_("Migrating users"))
objMigrate = migrate(targetDistr.getDirectory())
if not objMigrate.migrate(self.clVars.Get('cl_migrate_data'),[],[]):
raise InstallError(_("Failed to migrate users onto the new system"))
@@ -811,14 +868,14 @@ class Install(color_print):
self.clVars.Get('os_root_type') != 'livecd':
target = self.clVars.Get('cl_image')
if self.clVars.Get('os_install_mbr'):
- self.startTask(_("Installing bootloader"))
+ self.startTask(_("Installing the bootloader"))
self.prepareBoot(target)
self.endTask()
root_dev = self.clVars.Select('os_disk_parent',
where='os_disk_mount',
eq='/',limit=1)
if root_dev:
- self.startTask(_("Changing I/O scheduler"))
+ self.startTask(_("Changing the I/O scheduler"))
try:
schedpath = ("/sys%s/queue/scheduler"%
(getUdevDeviceInfo(name=root_dev).get('DEVPATH','')))
@@ -827,7 +884,7 @@ class Install(color_print):
self.clVars.Get('os_install_kernel_scheduler'))
self.endTask()
except:
- self.printERROR(_("Unable change I/O scheduler"))
+ self.printERROR(_("Unable to change the I/O scheduler"))
pass
if not setupType:
self.installDesktopClient()
@@ -907,12 +964,12 @@ class Install(color_print):
self.setTaskNumber(25)
# cmd options
if targetDistr.needFormat:
- self.startTask(_("Formatting partitions"),progress=True)
+ self.startTask(_("Formatting the partitions"),progress=True)
targetDistr.performFormat()
self.endTask()
# install distributive
#raise InstallError("Manual stop")
- self.startTask(_("Unpacking the system image into target"),
+ self.startTask(_("Unpacking the system image to the target"),
progress=True,num=18)
self.clVars.Get('os_grub_conf')
# set spinner flag
@@ -936,19 +993,18 @@ class Install(color_print):
# join templates
if self.clVars.Get('os_install_pxe') == 'on':
self.startTask(
- _("Configure PXE installation"),progress=True)
+ _("Configuring the PXE install"),progress=True)
self.applyTemplatesFlash('/')
else:
self.startTask(
- _("Configuring flash installation"))
- self.applyTemplatesFlash(targetDistr.getDirectory(),
- progress=True)
+ _("Configuring the Flash install"),progress=True)
+ self.applyTemplatesFlash(targetDistr.getDirectory())
self.endTask()
self.closeClTemplate()
# change boot config
if self.clVars.Get('os_install_mbr') and \
self.clVars.Get('os_install_pxe') == "off":
- self.startTask(_("Preparing system for reboot"))
+ self.startTask(_("Preparing the system for reboot"))
self.prepareBoot(targetDistr)
self.endTask()
except EOFError as e:
@@ -975,7 +1031,7 @@ class Install(color_print):
sourceDistr.close()
self.endTask()
if targetDistr and targetDistr.childs:
- self.startTask(_("Unmount the target system volume"))
+ self.startTask(_("Unmounting the target system volume"))
targetDistr.close()
self.endTask()
except (VariableError,TemplatesError,
@@ -985,7 +1041,7 @@ class Install(color_print):
except KeyboardInterrupt,e:
pass
if error:
- self.printERROR(_("System installation failed")+"!")
+ self.printERROR(_("Failed to install the system")+"!")
return False
self.printSUCCESS(_("System successfully installed")+"!")
self.endTask()
diff --git install/cl_wsdl_install.py install/cl_wsdl_install.py
index 3cb6710..7581c58 100644
--- install/cl_wsdl_install.py
+++ install/cl_wsdl_install.py
@@ -76,6 +76,7 @@ class InstallInfo(ClassSerializer):
cl_autopartition_root_size = String
cl_live = Boolean
+ cl_templates_locate = Array(String)
os_install_pxe = Boolean
os_install_pxe_path = String
@@ -153,8 +154,9 @@ class Wsdl:
return []
@rpc(Integer, InstallInfo, _returns = Array(ReturnedMessage))
- @core_method(category=__('Installation'),title=__('System installation'),
- image='system-installer,applications-other,drive-harddisk',
+ @core_method(category=__('Installation'),title=__("System install"),
+ image='calculate-install,system-installer,applications-other,'
+ 'drive-harddisk',
gui=True,command='cl-install',
rights=['install'])
def install ( self, sid, info):
@@ -169,7 +171,7 @@ class Wsdl:
dv.addGroup(_("Language and locale"),
image="welcome",
normal=('os_install_locale_lang','os_install_clock_timezone'))
- dv.addGroup(_("Choice of distro"),
+ dv.addGroup(_("Distribution"),
normal=('cl_image_filename',),
expert=('cl_image_linux_shortname', 'cl_image_arch_machine'))
dv.addGroup(_("Allocate drive space"),
@@ -476,6 +478,7 @@ class Wsdl:
dv.Set('cl_action','merge',True)
dv.addGroup(None,
normal=("cl_live",),
+ expert=('cl_templates_locate',),
next_label=_("Reconfigure"))
return dv
diff --git install/variables/X11.py install/variables/X11.py
index 1f898f5..22b99f2 100644
--- install/variables/X11.py
+++ install/variables/X11.py
@@ -42,7 +42,7 @@ class VideoVariable(Variable):
"""
if self.Get('os_install_root_type') == 'flash':
return \
- _("Video configuration unavailable for Flash installation")
+ _("Video configuration unavailable for Flash install")
if self.Get('os_install_x11_server_set') == 'no' and self.xorg_need:
return \
_("This distribution does not provide a Xorg server")
@@ -130,10 +130,10 @@ class VariableOsInstallX11VideoDrv(VideoVariable):
def choice(self):
"""Get available (already installed or installable drivers"""
return self.Get('os_install_x11_video_available')
-
+
def get(self):
# get available videodriver list from install or configure distributive
- list_video = self.Choice('os_install_x11_video_drv')#getAvailableVideo(distrPath)
+ list_video = self.Choice('os_install_x11_video_drv')
if not list_video:
return "other"
# if type system is usb-hdd then get detect video driver
@@ -162,12 +162,12 @@ class VariableOsInstallX11VideoDrv(VideoVariable):
if self.Get('cl_action') == 'system':
availDrvs = self.Get('os_install_x11_video_available')
if not value in availDrvs:
- raise VariableError(_("Available only %s drivers")%
+ raise VariableError(_("Only drivers % are available")%
",".join(availDrvs))
else:
if not value in getInstalledVideo(prefix="/") and \
not value in ("auto","other"):
- error =_("videodriver %s is unavailable")%value
+ error =_("video driver %s is unavailable")%value
if value in self.pkgDrvMap:
error += ". " + (_("Install driver %s with:")
%self.pkgDrvMap[value][0])
diff --git install/variables/autopartition.py install/variables/autopartition.py
index 8b06cef..1be3e82 100644
--- install/variables/autopartition.py
+++ install/variables/autopartition.py
@@ -252,7 +252,7 @@ class AutoPartition:
if not self._createVolumesGroup(vgname,disks):
raise AutopartitionError(
- _("Failed to create volumes group {groupname} from {disks}")
+ _("Failed to create volume group {groupname} from {disks}")
.format(groupname=vgname,
disks=",".join(devices)))
@@ -316,8 +316,8 @@ class AutopartitionHelper:
def uncompatible(self):
if self.Get('cl_autopartition_set') == "off":
return \
- _("Autopartition parameters are not available "
- "with manual partitioning")
+ _("Autopartition options are not available with manual "
+ "partitioning")
return ""
class VariableHrMemorySize(ReadonlyVariable):
@@ -362,7 +362,7 @@ class VariableClAutopartitionDevice(AutopartitionHelper,Variable):
untrusted = True
def init(self):
- self.help = _("set the autopartition device")
+ self.help = _("set the device for autopartition")
self.label = _("Devices for install")
def get(self):
@@ -421,14 +421,14 @@ class VariableClAutopartitionDevice(AutopartitionHelper,Variable):
for value in valuelist:
if value in useDisks:
raise VariableError(
- _("Device %s is now used by the current system")%value)
+ _("Device %s is already in use by the current "
+ "system")%value)
self.checkOnLvm(valuelist)
self.checkOnRaid(valuelist)
if len(valuelist) > 1 and \
self.Get('cl_autopartition_lvm_set') == 'off':
raise VariableError(
- _("You should use LVM for installation on "
- "more that one device"))
+ _("You should use LVM to install on more that one device"))
freeSize = int(self.Get('cl_autopartition_free_size'))
if freeSize < 0 and (abs(freeSize))/(Sizes.M*100) > 0:
availSize = int(self.Get('cl_autopartition_device_size'))
@@ -452,7 +452,7 @@ class VariableClAutopartitionSet(Variable):
self.help = _("autopartition")
def choice(self):
- return [("off",_("Use current partitions")),
+ return [("off",_("Use the current partitions")),
("on",_("Autopartition"))]
class VariableClAutopartitionScheme(AutopartitionHelper,Variable,AutoPartition):
diff --git install/variables/disk.py install/variables/disk.py
index a2e8078..169f6c7 100644
--- install/variables/disk.py
+++ install/variables/disk.py
@@ -594,7 +594,7 @@ class LocationHelper:
"""
if self.Get('cl_autopartition_set') == "on":
return \
- _("Location is not available with autopartitioning")
+ _("Locations are not available with autopartitioning")
return ""
class VariableOsLocationData(LocationHelper,TableVariable):
@@ -611,9 +611,10 @@ class VariableOsLocationData(LocationHelper,TableVariable):
"os_location_size"]
def init(self):
- self.help = _("DISK bound for installation will be mounted to DIR DIR "
- "set to 'none' will cancel the mount point transfer For creating bind "
- "mount point you have to specify the source directory as DISK")
+ self.help = _("DISK bound for installation will be mounted to the "
+ "DIR directory. If set to 'none', the mount point will "
+ "not be moved. To create a bind mount point, you have "
+ "to specify the source directory as DISK")
self.label = _("Locations")
class VariableOsLocationSource(LocationHelper,DeviceHelper,Variable):
@@ -705,11 +706,11 @@ class VariableOsLocationSource(LocationHelper,DeviceHelper,Variable):
wrongDevices = list(set(disks) - \
set(self.fixOsDiskDev()))
if wrongDevices:
- raise VariableError(_("Incorrect device '%s'")%wrongDevices[0])
+ raise VariableError(_("Wrong device '%s'")%wrongDevices[0])
wrongSource = filter(lambda x:x and not x.startswith('/'),value)
if wrongSource:
raise VariableError(
- _("Incorrect bind mount point '%s'")%wrongSource[0])
+ _("Wrong bind mount point '%s'")%wrongSource[0])
##########################
# detect duplicate devices
##########################
@@ -822,7 +823,7 @@ class VariableOsLocationDest(LocationHelper,Variable):
wrongMP = filter(lambda x:x and not x.startswith("/") and x != "swap",
value)
if wrongMP:
- raise VariableError(_("Incorrect mount point '%s'")%wrongMP[0])
+ raise VariableError(_("Wrong mount point '%s'")%wrongMP[0])
#########################################
# Check using current root
#########################################
@@ -861,7 +862,7 @@ class VariableOsLocationDest(LocationHelper,Variable):
incompBind = filter(lambda x:x[1]==wrongBind[0],
zip(srcMountPoints,destMountPoints))
raise VariableError(
- _("Source directory %(src)s already used "
+ _("Source directory %(src)s is already used "
"for binding '%(bindSrc)s' to '%(bindDst)s'")\
%{'src':wrongBind[0],
'bindSrc':incompBind[0][0],
@@ -873,11 +874,11 @@ class VariableOsLocationDest(LocationHelper,Variable):
if osInstallRootType == "flash":
if filter(lambda x: x and x != '/', value):
raise VariableError(
- _("Installation on a Flash disk is not supported for "
- "multipartition install"))
+ _("The Flash install is not supported for "
+ "multipartition install"))
if filter(lambda x: x == "swap",value):
- raise VariableError(_("Installation on a Flash disk is not "
- "supported for swap disks"))
+ raise VariableError(_("The Flash install is not supported "
+ "for swap disks"))
########################################
# check install on member of RAID or LVM
########################################
@@ -958,9 +959,9 @@ class VariableOsLocationFormat(LocationHelper,Variable):
if not FileSystemManager.checkFSForType(fs,
osInstallRootType):
raise VariableError(
- _("Filesystem for '%(mp)s' should not be '%(opt)s'")
+ _("The filesystem for '%(mp)s' should not be '%(opt)s'")
%{'mp':mp, 'opt':fs}+" "+
- _("for {typedisk} installation").format(
+ _("for the {typedisk} install").format(
typedisk=osInstallRootType))
if mp == "swap" and fs != "swap":
raise VariableError(
@@ -1016,9 +1017,8 @@ class VariableOsLocationPerformFormat(LocationHelper,Variable):
# partition use in current system
if diskMount.get(dev,''):
raise VariableError(
- _("{device}should, but cannot be formatted, because "
- "mounted to {mountpoint} in "
- "the current system").format(
+ _("{device}should, but cannot be formatted, as it is "
+ "mounted to {mountpoint} on the current system").format(
device=dev,mountpoint=diskMount.get(dev,'')))
if isMount(dev):
raise VariableError(
@@ -1042,8 +1042,8 @@ class VariableOsLocationPerformFormat(LocationHelper,Variable):
_("Bind mount points should not be formatted"))
elif isMount(dev):
raise VariableError(
- _("Please unmount disk {device} for using in"
- " installation").format(device=dev))
+ _("Please unmount disk {device} to "
+ "use it for install").format(device=dev))
def defaultPerformFormat(self):
diskFormat = dict(zip(self.Get('os_disk_dev'),
@@ -1440,7 +1440,7 @@ class VariableOsInstallMbr(LocationHelper,Variable):
if rootType == "flash":
if len(value) > 1:
raise VariableError(
- _("For Flash installation, you need only one disk"))
+ _("For the Flash install, you need only one disk"))
for mbrDisk in value:
if self.Get('cl_autopartition_set') == 'on':
tableOnBootDisk = self.Get('cl_autopartition_table')
@@ -1449,12 +1449,12 @@ class VariableOsInstallMbr(LocationHelper,Variable):
where="os_device_dev",eq=mbrDisk,limit=1)
if not tableOnBootDisk:
raise VariableError(
- _("Disk '%s' without partition table "
- "contains no boot record")%mbrDisk)
+ _("Disk '%s' need a partition table for the boot record")%
+ mbrDisk)
if rootType == "flash":
if tableOnBootDisk == "gpt":
- raise VariableError(_("For Flash installation, you need "
- "a disk with dos table"))
+ raise VariableError(_("For the Flash install, you "
+ "need a disk with a dos table"))
if value:
if self.Get('os_grub2_path'):
self.checkForGrub2()
@@ -1602,7 +1602,7 @@ class VariableClInstallType(Variable):
def check(self,value):
if value == "flash" and \
len(self.Choice('os_install_disk_single')) == 1:
- raise VariableError(_("Flash drive not found"))
+ raise VariableError(_("Flash drive not found")+'.')
class VariableOsInstallDiskSingle(Variable):
"""
@@ -1639,5 +1639,6 @@ class VariableOsInstallDiskSingle(Variable):
self.Get('os_disk_parent')))
deviceParentMap = dict(self.ZipVars('os_device_dev','os_device_name'))
return map(lambda x:(x,"%s (%s)"%(x,
- deviceParentMap.get(diskParentMap.get(x,x),_("Unknown")))),
+ deviceParentMap.get(diskParentMap.get(x,x),
+ _("Unknown")))),
self.availDevs())+[("","")]
diff --git install/variables/distr.py install/variables/distr.py
index fc278dc..c6e614b 100644
--- install/variables/distr.py
+++ install/variables/distr.py
@@ -300,7 +300,8 @@ class VariableClImageFilename(Variable,DistroRepository):
if subname:
subname=" %s"%subname
return "{fullname} {march} {build}".format(
- fullname="%s%s"%(fullname,subname),filepath=filepath,**distroinfo)
+ fullname="%s%s"%(fullname,subname),filepath=filepath,
+ **distroinfo)
else:
return filepath
@@ -317,7 +318,8 @@ class VariableClImageFilename(Variable,DistroRepository):
discardType=discardType)
if self.wasSet:
distros.append(self.value)
- return sorted(map(lambda x:(x,self.humanImageName(self._getDistrInfo(x),x)),
+ return sorted(map(lambda x:(x,
+ self.humanImageName(self._getDistrInfo(x),x)),
distros),key=itemgetter(1))
class VariableClImageArchMachine(Variable,DistroRepository):
diff --git install/variables/locale.py install/variables/locale.py
index 5e52cde..a7ef713 100644
--- install/variables/locale.py
+++ install/variables/locale.py
@@ -38,7 +38,7 @@ class LocaleVariable(ReadonlyVariable,Locale):
"""
if self.Get('os_install_root_type') == 'flash':
return \
- _("Locale configuration unavailable for Flash installation")
+ _("Locale configuration unavailable for the Flash install")
return ""
class VariableOsInstallLinguas(LocaleVariable):
@@ -179,7 +179,7 @@ class VariableOsInstallClockTimezone(LocaleVariable):
def check(self,value):
if not value or not path.isfile(path.join(
"/usr/share/zoneinfo",value)):
- raise VariableError(_("%s timezone is wrong")%value)
+ raise VariableError(_("the %s timezone is wrong")%value)
def generateComments(self,tzs):
"""
diff --git install/variables/net.py install/variables/net.py
index df2ae35..f008aed 100644
--- install/variables/net.py
+++ install/variables/net.py
@@ -44,12 +44,12 @@ class NetHelper:
"""
if self.Get('os_install_root_type') == 'flash':
return \
- _("Network configuration unavailable for Flash installation")
+ _("Network configuration is unavailable for the Flash install")
if self.routing and not self.Select('os_install_net_interfaces',
where='os_install_net_dhcp_set',
eq='off',limit=1):
- return _("Network routing is not available "
- "if all interfaces are set to DHCP")
+ return _("Network routing configuration is not available if all "
+ "interfaces are set to DHCP")
return ""
class VariableOsInstallNtp(NetHelper,Variable):
@@ -118,7 +118,9 @@ class VariableOsInstallNetData(NetHelper,TableVariable):
def init(self):
self.label = _("Addresses")
- self.help = _("IP address with network (example:%s)")%"192.168.1.1/24"
+# self.help = _("IP address with network (example:%s)")%"192.168.1.1/24"
+ self.help = _("Network interface, DHCP, IP address and network mask "
+ "(example:%s)")%" --ip eth0:off:192.168.1.1:24"
class VariableOsInstallNetHostname(NetHelper,Variable):
"""
@@ -136,7 +138,7 @@ class VariableOsInstallNetFqdn(NetHelper,Variable):
def init(self):
self.label = _("Hostname")
- self.help = _("set the short or full hostname")
+ self.help = _("set either the short or the full hostname")
def set(self,value):
if "." in value:
@@ -585,12 +587,13 @@ class VariableOsInstallNetConf(NetHelper,Variable):
if filter(lambda x:x.lower() == ("networkmanager"),
listDirectory('/etc/runlevels/boot')+
listDirectory('/etc/runlevels/default')) \
- or self.Get('os_install_root_type') == "livecd":
+ or self.Get('os_root_type') == "livecd":
nm = "networkmanager"
else:
nm = ""
for val,comment in self.Get('os_install_net_conf_available'):
- if nm == val:
+ if nm == val and not (self.Get('os_root_dev') == '/dev/nfs' and \
+ self.Get('os_install_root_type') == "livecd"):
return nm
else:
return "openrc"
@@ -607,7 +610,7 @@ class VariableOsInstallNetDnsSearch(NetHelper,Variable):
def init(self):
self.label = _("Search domains")
- self.help = _("search domains (comma delimeter)")
+ self.help = _("search domains (comma-separated)")
def isDNSByDHCP(self):
"""
@@ -631,7 +634,7 @@ class VariableOsInstallNetDnsSearch(NetHelper,Variable):
return "" if self.isDNSByDHCP() else dnsSearch
def humanReadable(self):
- return self.Get() or (_("Received by DHCP")
+ return self.Get() or (_("Get via DHCP")
if self.isDNSByDHCP()
else _("Not used"))
@@ -643,8 +646,8 @@ class VariableOsInstallNetDns(VariableOsInstallNetDnsSearch):
metavalue = "DNS"
def init(self):
- self.label = _("Domain name servers")
- self.help = _("domain name servers (comma delimeter)")
+ self.label = _("Domain name server")
+ self.help = _("domain name server (comma-separated)")
def set(self,value):
return " ".join(re.split('[; ,]',value))
@@ -659,10 +662,10 @@ class VariableOsInstallNetDns(VariableOsInstallNetDnsSearch):
def check(self,value):
reIp = re.compile(ip.IP_ADDR)
if any(ifilterfalse(reIp.match,value.split(','))):
- raise VariableError(_("Wrong DNS IP addresses"))
+ raise VariableError(_("Wrong IP addresses for DNS"))
def humanReadable(self):
- return self.Get() or (_("Received by DHCP")
+ return self.Get() or (_("Get via DHCP")
if self.isDNSByDHCP()
else _("Not used"))
diff --git install/variables/system.py install/variables/system.py
index 1efd0a8..4dc3f40 100644
--- install/variables/system.py
+++ install/variables/system.py
@@ -42,7 +42,7 @@ class UserHelper:
User setting up unavailable for flash installation
"""
if self.Get('os_install_root_type') == 'flash':
- return _("User configuration unavailable for Flash installation")
+ return _("User configuration unavailable for Flash install")
if self.Get('os_install_x11_server_set') == 'no' and self.xorg_need:
return _("Autologin is available for Xorg sessions only")
return ""
@@ -56,7 +56,7 @@ class VariableOsInstallScratch(Variable):
def init(self):
self.label = _("Builder mode")
- self.help = _("installation for build")
+ self.help = _("build installation")
def get(self):
# for installation default - normal system
@@ -70,8 +70,7 @@ class VariableOsInstallScratch(Variable):
# scratch not use for falsh and multipartition
if self.Get('os_install_root_type') == "flash":
raise VariableError(
- _("Installation on a Flash disk is not supported"
- " in the builder mode"))
+ _("The Flash install is not supported in the builder mode"))
if filter(lambda x: not x in ('/','swap'),
self.Get('os_install_disk_mount')):
raise VariableError(
@@ -235,7 +234,7 @@ class VariableClAutologin(UserHelper,Variable):
Autologin only for migrated non-root users
"""
if value and not value in self.Get('cl_migrate_user'):
- raise VariableError(_("User %s is not exists")%value)
+ raise VariableError(_("User %s does not exist")%value)
if value == "root":
raise VariableError(_("Autologin is unavailable for user %s")%value)
@@ -444,7 +443,7 @@ class VariableClSetup(Variable):
def check(self,value):
if value == "boot" and self.Get('os_install_root_type') == 'livecd':
raise VariableError(
- _("Boot configuration is not available on LiveCD"))
+ _("Boot configuration is not available on a LiveCD"))
class VariableClLive(Variable):
"""
@@ -455,8 +454,31 @@ class VariableClLive(Variable):
opt = ['--live']
def init(self):
- self.label = _("Configure only dynamic parameters")
- self.help = _("configure only dynamic parameters")
+ self.label = _("Configure only dynamic options")
+ self.help = _("configure only dynamic options")
+
+class VariableClTemplatesLocate(Variable):
+ """
+ Location templates
+ """
+ type = "choice-list"
+ value = ['overlay','local','remote','clt']
+ element = "selecttable"
+ opt = ["-l","--locate"]
+ metavalue = "TEMPLATES"
+ untrusted = True
+
+ def init(self):
+ self.label = _("Location templates")
+ self.help = _("select location for templates %s") \
+ %"'overlay','local','remote','clt'"
+
+ def choice(self):
+ return [
+ ('overlay',_('Overlay templates')),
+ ('local',_('Local templates')),
+ ('remote',_('Remote templates')),
+ ('clt',_('clt templates'))]
class VariableOsInstallPxe(ReadonlyVariable):
"""
@@ -469,11 +491,12 @@ class VariableOsInstallPxe(ReadonlyVariable):
if value == "on":
if self.Get('os_linux_system') != "server":
raise VariableError(
- _("PXE installation is available for server only"))
+ _("The PXE install is available for Calculate Directory "
+ "Server only")+'.')
for pkg in ['net-misc/dhcp','net-ftp/tftp-hpa','net-fs/nfs-utils']:
if not isPkgInstalled(pkg):
raise VariableError(
- _("You must to install %s package for PXE installation")
+ _("For the PXE install, you need to install package %s")
%pkg)
try:
config = cl_template.iniParser('/etc/calculate/calculate.env')
@@ -483,8 +506,8 @@ class VariableOsInstallPxe(ReadonlyVariable):
except:
pass
raise VariableError(
- _("PXE installation is available with "
- "DHCP service configured only"))
+ _("The PXE install is only available if the DHCP service has "
+ "been configured first"))
class VariableOsInstallPxePath(Variable):
"""
@@ -496,4 +519,4 @@ class VariableOsInstallPxePath(Variable):
def init(self):
self.label = _("Path for installation")
- self.help = _("path for PXE installation")
+ self.help = _("path for the PXE install")

@ -53,6 +53,7 @@ EBUILD calculate-utilities-3.0.0_beta3-r18.ebuild 652 SHA256 da10f29373f69109a16
EBUILD calculate-utilities-3.0.0_beta3-r19.ebuild 652 SHA256 60175894393da78af098cd3061a4b1362a99fb1722e568edc2f9d9e9a4c3f07d SHA512 9b427f17d9211d6d747332885ef8c012fa9b5fe0d25f5e4ffead46aae986fc8d8f4ef5d971e2e7cf596603d8a11dcde391dd44e2ab439551bd572427e7e450be WHIRLPOOL 6eaa51471857f8d2cd4bdd62b598fb558a0ed769ad39c4d6ae29ebf626407a328e2add4f834cd5c1caaf2a570e2358ca6a847e004c50727d8d9f1f2e1e74b2c5
EBUILD calculate-utilities-3.0.0_beta3-r2.ebuild 639 SHA256 0750b8f33f7aef4a3e4461dc0e7ccb0b8fa307b36f433195538394f57e82b19e SHA512 bd7bc288e538d3af5fc71a56d791a93f1966941f4d8072efde05c6881d4917aa95017635a06eb10126967693fad5d560924b2dfbc9bf8a1afe422a3fcb77ff72 WHIRLPOOL 5a7a04a0294d5ca640cd240529f9bedf7602d84aa50362a36128ed1cc135bf7a02f96080b749054678e9c0207fb2e147ca32a0e2496488966dea198a83926b3b
EBUILD calculate-utilities-3.0.0_beta3-r20.ebuild 652 SHA256 dbe34187ea4dd2e307965b9d6eb05ff6bf488fe71c925c87346a06643ab75f7e SHA512 b1900b02cb37c6cc5632d1ddfdfe26df00299c4753713da333a62f7e3586ab5a02637168aa72b058ebe237caf2144f7481401c03923f0c76b3826eb4262dfe55 WHIRLPOOL c9abf1f5ab891f8ee82ef8423e0a8d077d094509ac18e9264aaeacc9fb85322e30205f0ac42b3be3dd5178e6f1abffebe1143448062e246bcc7777b957638f71
EBUILD calculate-utilities-3.0.0_beta3-r21.ebuild 653 SHA256 ca77debfdbaf10b21ca70e50fd49129dd6319f05456a6e2ba8e65f6f2576334f SHA512 cd90d25f7484a38acefaad7b89ae2cbdae38c1256f95569f5af81cde93854879c4caac4eabda882b648e8c5e79f561d4c1bc72432c31ab654905593558d3594f WHIRLPOOL 8a2a2f34303d61c9fe374526b44d2d5461577fa9f5344e54b61c51317c195d1cdc920e6c02a29bc58905c7e024020e8887ba9fed16fdf64206ab8d4264728536
EBUILD calculate-utilities-3.0.0_beta3-r3.ebuild 639 SHA256 c33febf18bd72c1a06e46d6f5bc43789484f0ac07fa1445b0576f01bbaea7f0a SHA512 487dfee2ccf2b8a98b34ec210a033357ee25d7edd1b4a71fb8345f0b7610df981805362df7eab9e2b7e521f6f23cfa19a687a3b743a2fe172e314fa44de55a99 WHIRLPOOL e133a7b1f18aa71d6c700c90cab4b1bca83f2fa50e8ccc3985549331f651e8f9e63dfbe0da1c285b383f0cab60346be19ed24c417252ec63649fb2927ec4a8e8
EBUILD calculate-utilities-3.0.0_beta3-r4.ebuild 642 SHA256 d45b696822e7f218e26e489cb47bedaaafdd3b77fcff62c4625135620183ca30 SHA512 62c4f7d4fa64c4b14bec2b9757526f690f3f1353c54e52cff09997289bbeb8784456e590a690e6800df1e1ff28ebfb8b7c1b30bdbf52458c3a509766dd45d6d5 WHIRLPOOL eb17fda691c7bd6d09d7b79697ab12a1243f3de060bb3777aa2d367a5626276fe1e057db61404ae1d29052b508021260ef487c4293e3776ca0665ada9c404731
EBUILD calculate-utilities-3.0.0_beta3-r5.ebuild 642 SHA256 24ff6b585d3a66e7449804b411dadffb07292b648083296c4021b28ab8237bf8 SHA512 2e86b277b99b108986b375badeb6a20a19f47d55867c428fcfba071c3dd3af3fd80a16e7316b31bde0edde4380f83cb7fa5fbfa761761dcac28cc6dc2b898113 WHIRLPOOL c18582271cac053f4d501cec1e65a3c7983f8924b4806c6f1ae8315d73beb03e63bab1286c48379afb23de22a259ba962c2da86028f5f13d02f91847ece93077

@ -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_beta3-r10
=sys-apps/calculate-i18n-3.0.0_beta3-r6
=sys-apps/calculate-lib-3.0.0_beta3-r4
=sys-apps/calculate-core-3.0.0_beta3-r12
cl_consolegui? ( =sys-apps/calculate-console-gui-3.0.0_beta3-r8 )
cl_console? ( =sys-apps/calculate-console-3.0.0_beta3-r6 )
"
Loading…
Cancel
Save