Update 3.1.1 utilities

atratsevskiy
parent f0388f2dc7
commit 6a4642fab9

@ -3,6 +3,7 @@ AUX calculate-core-3.0.0-r1.patch 20974 SHA256 5c8853ef5d65a6e0fa04cbdcf96d6609a
AUX calculate-core-3.1.0_beta1-r1.patch 2943 SHA256 b817022eeec34181311f4f96abfd24cdf57ede1449985e6ad92b57d24c57c4c4 SHA512 3965792acb096415a198ba0475d7a53a5729d64a4b84f7474cfdb8060901693a9aa8f6d866c7a98b56669b086d745c9bc04e5b4569a7d06c17b5beab8f4ee100 WHIRLPOOL 7261f750c6113e2b2d2aa821866caacb75dc86b023aea150efb6f5f2b36ad80cfdf11c57b62bf3ae48f85eb14b91fbd0e9fc2cd734108613f945b630ff6318cf
AUX calculate-core-3.1.1_alpha1-r1.patch 1560 SHA256 ffd41e06a66c764210999d3f4aa9d1a72e5057f7d2d7e0ff9ebc6f692e3c4367 SHA512 f47541eff4210efebe2d51ff721db8c4232802dde31d88b8e5370864ed860cbf13d6f1de3d21e88d661faa0880fa34f426b244da5e1e5e40b41b8657d8f9b3a3 WHIRLPOOL 57bb397cf72c6eb2c97e62c5a53bfb2f3da7ff95526de132d5f37e8c631b0b36fdc25cf188c72b5be1500f74c62aaa99dbe96c0cc0519de3e58c0f13cd7f282a
AUX calculate-core-3.1.1_alpha1-r2.patch 2898 SHA256 226a6a5051523674c5536d33b68863f368b6de8d3270e0eb123164b4a39244cd SHA512 a5a18c495255de5a8988a22ac94a21816fabca49b9e179d43deb3e62fb565077d7cc248e48b7a7e60d8b5bcebc8f6605f29c2daddcbbd956635b8d078a29ce35 WHIRLPOOL a586d012851df53ce07c2a233dfeb89c864d6cddca03198fc55d75c51da647dfbb18dd7ede6b07dbf9279b18d079274e93b7b9df6c68271b63d8921aee625961
AUX calculate-core-3.1.1_alpha2-r1.patch 575 SHA256 7dc79ca4d51e0c547465359a4a307a62241d8e573b6f18e434a45c5dca280195 SHA512 a2ab6b199f39d494903336a8ee71f0515064aa0aeea18bd66d905faeaed28f3cb34545295d99fe95fa74a91365b0385f2d99247eec6298ea1f1b6f9dc403b0c8 WHIRLPOOL d887a09a7844f9032bf5663f2eaf3ef48044c1ac60f2d2da2c280b558b7b0d36e50ac84e620a6414439871e174e6ef96947adb4ea25178533d9a08687b0c5851
DIST calculate-core-3.0.0.tar.bz2 86337 SHA256 ee2df2b93a1bd824e94d7179ef15478ae5b15de7d48f29752eb332f247bfc054 SHA512 60b1fc54ba5ee5b07586b2d2fe900f4e51a0c6966366b0750823185bacd965ed9ee3eebeb2dc7c220aef8fe8271585616acfb22926edb6f779c0829e7bada2ed WHIRLPOOL b3e4413d4bbbbfa1f74887179639fe1291cca0adf2968e2fd5198364e97da7f3ee83a51efa6f22bcd83e55970ab743dcb2d539b5979bb52cadca982af54fa2d2
DIST calculate-core-3.0.1.tar.bz2 86674 SHA256 0e690bd85973831c2aeddcc002f3ed1fe6bd5533f367e48decf512e429cc790a SHA512 24df3e8eaef57748d24156d7b15ba85bcfe1ecb888a052c1b86f71cf25b51330f64df68369dff48040d8779e40d036115eb20c645fee1c5017f3b68b0aa9fc36 WHIRLPOOL b5ce9efbb10e534928c465a6f44065618eeca48c6c024353331993c713c2bf1e124c9b2b1eec01ae36fe5f24700bc43429cf8060ea45b94f54ecfe8da61e0f60
DIST calculate-core-3.0.2.tar.bz2 86741 SHA256 f35bfe8e34df9ad9c07ac7d281b2b6a593acf00faa38a1221229164406587993 SHA512 cd44a055fe17529f7996f8dd26106aed29488db36313b027a2dcd43c57fad999e7d53f24802da1b3f449a0b79fdc19a7d1e245eb9415d8ed2ee02a7e7984ee5c WHIRLPOOL 3992697faa72dd40710b06646e8a9cbf12eea92c4f2c6c609355769ec4a353696231d42b248f211177711bf8bf2109f431c22ce5b92ddd31841d5c1136fbc324
@ -33,6 +34,7 @@ EBUILD calculate-core-3.1.0_beta1.ebuild 1081 SHA256 d7a9dd2cdf63f9bd830255dc544
EBUILD calculate-core-3.1.1_alpha1-r1.ebuild 1212 SHA256 6d997f6ddc7136cab355a650416899a776235c5d8196baba0e2ecd268f1311f8 SHA512 eeaf1bebc7a205d16952f13c8c06fbfb5b9c31b7ab561158da6d146c8897f2e1acff6ea35a678b705d3728e18f43ea9e8882d809be60ebd02d2fb542571ead40 WHIRLPOOL 8a3e745b1de965abe9ba7b6a6cf561fc07552520a2939548d4fd8a691c90b4e97a055d91aa2025edd19310beb6f7e6979d91da8160453fdff8ce327cdde4c894
EBUILD calculate-core-3.1.1_alpha1-r2.ebuild 1212 SHA256 4f361ad2d998a786f095bc42d4f2214b416bccaa0fd74e845e240d37183fad07 SHA512 105a416691309dc6b85496c53e08804fb8f548bef06a7414f7028377254eda44c288fd4176cf8462cd8322642680719459c6ff0b09ad88c09f2403dc6e1036e4 WHIRLPOOL ead682865c46bb8553aaa73eee0f736577cd7d3accb25c116e971a84a8530e6c4e32268847577615e39dc2d6949d2db6fa1b67bfb958ee65b0b11796c47db818
EBUILD calculate-core-3.1.1_alpha1.ebuild 1071 SHA256 0151b7dc4a12f0d1eb2255445efbb0d27fe6341f6a666475e73b99f840b68a28 SHA512 56ba4390629cdf9cf9b38fe57bd68a55135ae83b77f753dc25c42c7cd682475f3994a4f826e681cd5a81a39c5d4152d8f7208586d7ce2f5e64e7cbf171a09cd5 WHIRLPOOL 1f1d1a32950ffe3c06237bf8dc7222e576280ed90cda37ae349177b063df8eba3e00930b2624525daaefda8d53fc6d7170d8fc0349b8a26361e30de5e59fcc44
EBUILD calculate-core-3.1.1_alpha2-r1.ebuild 1212 SHA256 113012d884b7b9eacaaeb8b28636585264ce666183f677b489bd60640f0614f6 SHA512 273542c27c989c65e2ec745ef9b3ff4e5ced7d32cf3178e80e4150ee6a67e6f87788691e0f21f9bc2aa9efe352ea558f1bd4b5163628619bb20677d3b8683ad0 WHIRLPOOL e08309e406ebabadc2ba9ce13707344b9de68b17cb3c4128e1ae75f4ba5059ca0402e4ba4bdf1e11b0c8b3b4f2a7da56406be754972462add8b09bfccd3ba346
EBUILD calculate-core-3.1.1_alpha2.ebuild 1071 SHA256 2d8f835b81768187442240c6ec1ab426ad1288325e6b20c9eb326060eaa0f171 SHA512 076cc552109b6f1957ce6d398d6f3f135b1f29a5846a6a0d89ef4a7f87a9ea63530711e144eee15a726cd16018810957f12ae1b75efc03a60baa95664fdc3a9a WHIRLPOOL 1226109eeb069833f5ca872ce46f24879c5a8ec6d4d7f3ce82bdb60d0dc2e19529980bb38e9872042ad96da8aa32253e78d6b7630c75450f509d6d473aa7f1c4
EBUILD calculate-core-3.1.9999.ebuild 656 SHA256 475e34d10141354a4c60e029fc1cb74b080c3a1371d9e1e44a5e2936b7130ed4 SHA512 9ba865c5effa56079a3841a96d1a4a89d4bbc27e092042aa4a87d1b4ecde9d3a690c92c73e10b330724258aaf3138d2a58d50d18d2fbea9e657c3c5d2f8395ee WHIRLPOOL 89d3bcc657324d1ffb4265eab3e28e94e3d00fb7530c6654e75b52fe002d70f72998930729cfe3320a3ff571277e6e59c649b0df2fe071bcd9b050f9d42608eb
MISC ChangeLog 382 SHA256 ce74a6d08ec1ea80ee021f5378f705102435abfcd5304d851c3f7932a967065e SHA512 f5531edead30072e8fb8f278cad1d265762b8ecdf146b86cf514704f373f2bd8068b3ed35e68186687f83129814b73c6269024d442fb592515c72a9d0e6d3ca1 WHIRLPOOL 48571b2986c2f8797109a3a3440a43f4f87b601e8e52bd41a470bd077b37eb2b6118e6baf86179df065aa2e4a840d9501b2b2455b990a19dfaa2d4ee7784c922

@ -0,0 +1,49 @@
# 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 WSDL core for Calculate 3"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS=""
IUSE="minimal"
DEPEND="~sys-apps/calculate-lib-3.1.1_alpha2
>=dev-python/soaplib-1.0
!minimal? ( dev-python/sudsds
net-libs/dslib
dev-python/pyopenssl
dev-libs/openssl
dev-python/m2crypto
dev-python/cherrypy )"
RDEPEND="${DEPEND}"
pkg_preinst() {
dosym /usr/sbin/cl-core /usr/sbin/cl-core-setup
}
pkg_postinst() {
einfo "For autoconfigure calculate-core for adminuser perform:"
einfo " cl-core --bootstrap <username>"
einfo "For run calculate-core perform:"
einfo " /etc/init.d/calculate-core start"
einfo "Add calcualte core to autorun:"
einfo " rc-update add calculate-core boot"
}
src_unpack() {
unpack "${A}"
cd "${S}"
# apply revision changes
epatch "${FILESDIR}/calculate-core-3.1.1_alpha2-r1.patch"
}

@ -0,0 +1,13 @@
diff --git core/server/setup_package.py core/server/setup_package.py
index 2111b8d..366f061 100644
--- core/server/setup_package.py
+++ core/server/setup_package.py
@@ -456,7 +456,7 @@ class updateSystemConfigs(shareUpdateConfigs):
self.copyConfigFiles(configPath,variables.Get('cl_config_protect'))
if clTempl and clTempl.getWarning():
for warn in clTempl.getWarning().split("\n"):
- self.SUCCESS(warn)
+ self.WARNING(warn)
return True
class PackageUpdater(updateSystemConfigs,updateUserConfigs):

@ -24,6 +24,7 @@ AUX calculate-lib-3.1.1_alpha2-r3.patch 4920 SHA256 3d3490321e45744947d70ac1668a
AUX calculate-lib-3.1.1_alpha2-r4.patch 6797 SHA256 6067424bac12b0dd2c113e98038db7157705d48669c8574e93dc4308bf217e18 SHA512 bb4f49192ea410be808867e6f3124a6b859c4818a8262f486af03b93fa18cbb1d7b8d705595fd1c441fbd40a47d8919164b2bbb0cdb8677303fcaf0f8b1caab1 WHIRLPOOL d378bba2b0831fd776fbea8fae2597268c2c863597178eab31148b87e91032f2501e932244e596ad24146beb68843fd95cf12cd2c438380ce58903aae1866966
AUX calculate-lib-3.1.1_alpha2-r5.patch 7229 SHA256 ca651e451bbb8353b7a8f35eed6beeeb0a7ec3521b3d3186e8c2e00ba9f75609 SHA512 b436c23c3404a811b144d9bdb060a65db5c1ea641864ac424398a736bd6135bbf42f75c44e8f9b8931ef50ab57a5f2e4892ea018baa0d6ce89ae231acde4aee8 WHIRLPOOL 1fd69fb0a444c34f13323a883b28e5932c3d3bd5004c27997e0101b46bbde69871fec07a7a79b522fd40ecfda68a16980e2eaf3b811b0b2c3001b9e024f24db8
AUX calculate-lib-3.1.1_alpha2-r6.patch 7268 SHA256 d6e8e255f151c3d48ddd717b0fed2075b20335d85aa1a7ddc636e769e8777bf4 SHA512 e204468ad1aab9a4545c852165088bec9f820a23dbba1da7cfeb3e344f5c822f0f2798965016afab6e9fd3269f0ef82d60c47ad0dbd0235fe9c896f1cab0beb8 WHIRLPOOL a32cdf646a82840dc1dcebc596b8446a6ccfc19645a5d60e49f2a7a5038fec01a52bc153b722314853b70bf27143925708531d2f6bfc94825f288768b5a2e64e
AUX calculate-lib-3.1.1_alpha2-r7.patch 8984 SHA256 efab5c0e253090dc41c0cf70ef8749e1d7e3d51e3987f304c819becb808a2035 SHA512 062252fec6e03883de52948eb01d4afc43efcb3b2c7010c11c0a66d04534968a4270de97c7e79ac9ee601e6c1304147a315a47a375cc9da89f3907a5ef73ae32 WHIRLPOOL 62300787c42c99663e4b7ef40cadc35d105517ef6dc8fd8e2726cc79ab15ec653dce5750314ccdba64fba6aa4a1b5df03afaa1f3c854bdca3f18ed3b76dcec79
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
DIST calculate-lib-2.2.30.tar.bz2 120055 SHA256 a5aa07e5c5e02d27a8b9fad8c0e4bd0562d40d7a2753c2b57a18d99bd0dd6cb2 SHA512 7e8920f5fd855f05aba6576d5e4751ecf71a3e4107b46671d9a4be8557e1dd616adefad728b6a9ca87656dca6fd17d52bce41462b7fc906d20118e97607f1b1b WHIRLPOOL 0e8441484ee7d91c9926ab2deed8357272fecb2156e5dad45f865f6b13aff6c43868323dececc859ce7824bedd8794cec25b857be30afa83c44a81bcbcf510d2
@ -82,6 +83,7 @@ EBUILD calculate-lib-3.1.1_alpha2-r3.ebuild 821 SHA256 c417d3904830c64de5978e26e
EBUILD calculate-lib-3.1.1_alpha2-r4.ebuild 821 SHA256 c562f85ff455b300a04674f3b5e8d88efd85e3a09a28d1f62e18138b32326ff5 SHA512 442d202a23d9f6db5d3c18ebf367821ddb3c28b6a70c194403f5e7df250e2477b415a518b8117e0dfc3d927057ee9bc79958259b19581fbdfc9954bf31f29c87 WHIRLPOOL cd3cf784d4cf68cdf6d0be541377b9fb43342e60cdc7e6b41beb153fc2c2b1d2141468bd43534758265cf4349f83fc4b79360388ca955c9490481e8af68a8f57
EBUILD calculate-lib-3.1.1_alpha2-r5.ebuild 821 SHA256 86863fe32ddcb0408d1376f7473878840c72e974aef825eca557c9b3ad38f926 SHA512 8c27740d76608c60f6a04ac425f3f9dc7c0559d1c43d3fa1157534c841caf6d6d9212e25ccfbabe164f1a710ab4e4d67ec484f5b8372f99c30c0adade281cfde WHIRLPOOL 4019fa57dae313436c2174a5aa1825a534ecc99f4332e3b43675cd67a0c442210ee6d6635d12c9b6e95e82d73d1e128e8019bdd6ec5bedd7f64a984b2722c06c
EBUILD calculate-lib-3.1.1_alpha2-r6.ebuild 821 SHA256 497be72fd280422be9b8e9a2c4d16d7ede7df5a862dc5f0f2fdfb82c7615c257 SHA512 b21c85f684239b192bb66d3be165d49d838a9ab0fe5d252cc1cfeec0199f64d6e98d319935c861ea886ca0885e0d3c2352451a4696c3824b061b02ec4a92dca3 WHIRLPOOL b6063a52054ed72fba8eb982df6e40889a18d791604fd1de1117f7581644362c492b8a7167166dbf93e952de579527adad4549463b889fd80417d6bbf052a2dd
EBUILD calculate-lib-3.1.1_alpha2-r7.ebuild 821 SHA256 8f93c6453088a61773c6f561ce4df8c7d88f1f9fb9afa79ac0809a12b3f2a11d SHA512 2abc50f71bbc17197bdcaf1f7d980efe8ff29fd70457265b0c9cd2640eda445b2d107f531479742829daa85d099778a4e59dfd4f629129f10d7f0f98cbc0086e WHIRLPOOL 825a8b0ed254ed5c072e8f37b464941222e8ca2c5b703b21fe74773b4c79b0e921c8ac8df5c2eea4d90c4cebfb74bb90520400b0ebc1bf78c0db6e2c32623675
EBUILD calculate-lib-3.1.1_alpha2.ebuild 681 SHA256 6a6332013e5a56db775c6490b63b60f959528660b0982e6a414f1614c0b0ffa5 SHA512 19a71823543fe843a05a548207509ee4dcffa784c61e23c56cf17d2c651effbfc63914beb03f0977b804c5cc647407eecdcbdaed4d7478783bec46eee72a50fb WHIRLPOOL 5ffd414c804671057fe2a7a2176999eee0a75574a5043332d3c01f08b93635773800e6b5d9901993e4fbf7f95d175659d621be9231d08f8bdada2654e45f8e1d
EBUILD calculate-lib-3.1.9999.ebuild 708 SHA256 a1d64b7f014831bf6b0a38928d53cb55758b7a12e5f3e98fffd28025ffacbce1 SHA512 3873859a791941d421e2338b437521955da383ce986408f1a951305e2dd75a1a4f771c9ec2caa096c5c8ea6a1776d6d0ed99e025ffa786ba029cafdbadfa439b WHIRLPOOL 5ac1a10b53f810ab527a0ebe52bc87e8397e61375cf6e0acbed89d8f6b8385e72bf234e0fdce479c3a3f1652bb6e520710ce9356750a97d644c0db0a33f6facb
MISC ChangeLog 29851 SHA256 16ca15c794bce78eefc487ed372c3d4960078fbd4c5fe4524211688d0146ef97 SHA512 be6bdf290f391529dce0deb67bf9d367e42e407601dd581f7c08d082399b5860cff2a76d4d64dd876154d51e84f34499db06c715145ac64f78d168aae7e78dbf WHIRLPOOL 2561ccd1eefe3423d97c67aff5c0fe6c8ca624e527fb885b042c8e812194bb1635d7e7d7d86c534562eb780c6b9144d92e24893f2d0696cf8a34a6a912a45788

@ -0,0 +1,35 @@
# 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=""
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}"
# apply revision changes
epatch "${FILESDIR}/calculate-lib-3.1.1_alpha2-r7.patch"
}

@ -0,0 +1,208 @@
diff --git calculate/lib/cl_template.py calculate/lib/cl_template.py
index 24ad307..d39555a 100644
--- calculate/lib/cl_template.py
+++ calculate/lib/cl_template.py
@@ -2181,6 +2181,10 @@ class _file(_error):
F_CONF = open (nameFileConfig, "r+")
except:
try:
+ if os.path.isdir(nameFileConfig):
+ self.setWarning(_("unable to open the directory as file:")
+ + nameFileConfig)
+ return False
F_CONF = open(nameFileConfig, "w+")
except:
self.setError(_("unable to open the file:")
@@ -2799,6 +2803,33 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
else:
return ""
+ def funcPkgw(self, funArgv, resS, localVars, textTemplateTmp, nameTemp):
+ """Функция шаблона pkgw(), возвращает аргумент если программа установлена"""
+ # Название программы
+ nameProg = funArgv.replace(" ","")
+ origProg = nameProg
+ # Замена функции в тексте шаблона
+ replace = ""
+ if "/" in nameProg:
+ category, spl, nameProg = nameProg.partition("/")
+ nameProg, spl, slot = nameProg.partition(":")
+ if not category in self.installCategory:
+ self.getInstallPkgGentoo(category=category)
+ self.installCategory.append(category)
+ replace = self.pkg(nameProg, slot=slot or None)
+ else:
+ if not self.flagAllPkgScan:
+ self.getInstallPkgGentoo()
+ templateFunction.flagAllPkgScan = True
+ nameProg,spl,slot = nameProg.partition(":")
+ replace = self.pkg(nameProg,
+ slot=slot)
+ if replace:
+ replace = origProg
+ textTemplateTmp = textTemplateTmp[:resS.start()] + replace +\
+ textTemplateTmp[resS.end():]
+ return textTemplateTmp
+
def funcPkg(self, funArgv, resS, localVars, textTemplateTmp, nameTemp):
"""Функция шаблона pkg(), выдает номер версии программы"""
# Название программы
@@ -2810,6 +2841,7 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
nameProg, spl, slot = nameProg.partition(":")
if not category in self.installCategory:
self.getInstallPkgGentoo(category=category)
+ self.installCategory.append(category)
replace = self.pkg(nameProg, slot=slot or None)
else:
if not self.flagAllPkgScan:
@@ -2894,6 +2926,31 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
textTemplateTmp[resS.end():]
return textTemplateTmp
+ def funcIn(self, funArgv, resS, localVars, textTemplateTmp, nameTemp):
+ """
+ Function in for check value in variable
+ """
+ terms = funArgv.replace(" ","").split(",")
+ # Название локальной переменной
+ nameLocVar = terms[0]
+ flagFoundVar = False
+ try:
+ value = self.objVar.Get(nameLocVar)
+ flagFoundVar = True
+ except:
+ pass
+ if flagFoundVar:
+ if value in terms[1:]:
+ replace = "1"
+ else:
+ replace = ""
+ else:
+ self.raiseErrTemplate(_("error: variable %s does not exist")\
+ %str(nameLocVar))
+ textTemplateTmp = textTemplateTmp[:resS.start()] + replace +\
+ textTemplateTmp[resS.end():]
+ return textTemplateTmp
+
def funcPush(self, funArgv, resS, localVars, textTemplateTmp, nameTemp):
"""локальная функция записывает значение переменной
@@ -3658,7 +3715,8 @@ re.M|re.S)
def executeTemplate(self, code, execPath):
"""Execute template"""
- p = process(execPath,lang=self.objVar.Get('os_locale_locale'))
+ p = process(execPath,lang=self.objVar.Get('os_locale_locale'),
+ envdict=os.environ)
if "/bin/bash" in code.partition('\n')[0]:
p.write("""function translate() {
gettext -d cl_template "$*"
@@ -4281,6 +4339,11 @@ gettext -d cl_template "$*"
self.getApplyHeadDir(newDir, dirInfoFile, opt)
if createdDirs:
self.createdDirs += createdDirs
+ if os.path.isfile(pathDir):
+ self.setWarning(_("{dirpath} is file").format(dirpath=pathDir))
+ self.setWarning(_("templates in {tempath} is skipped"
+ ).format(tempath=path))
+ return None
if objHeadDir:
return pathDir, objHeadDir
else:
@@ -5052,7 +5115,7 @@ gettext -d cl_template "$*"
def fileIsUtf(self, fileName):
"""Проверяет файл на кодировку UTF-8"""
- if os.path.exists(fileName):
+ if os.path.isfile(fileName):
FD = open(os.path.abspath(fileName))
newTemplate = FD.read()
FD.close()
@@ -5060,7 +5123,8 @@ gettext -d cl_template "$*"
newTemplate.decode("UTF-8")
except:
return False
- return True
+ return True
+ return False
def joinTemplate(self, nameFileTemplate, nameFileConfig, optFile={}):
"""Объединения шаблона и конф. файла
diff --git calculate/lib/datavars.py calculate/lib/datavars.py
index 02b1d4a..1791281 100644
--- calculate/lib/datavars.py
+++ calculate/lib/datavars.py
@@ -33,9 +33,9 @@ from types import StringTypes
def addStdConfig(fileLst,prefix='/'):
stdPath = path.join(prefix,
- "/var/lib/layman/calculate/profiles/calculate.env")
+ "var/lib/layman/calculate/profiles/calculate.env")
if not stdPath in map(os.path.abspath,fileLst):
- return fileLst + [stdPath]
+ return [stdPath] + fileLst
return fileLst
def itemgetter(*args,**kwargs):
@@ -757,9 +757,10 @@ class SimpleDataVars:
searchProfile(iniFile,'calculate.env'),prefix=self.systemRoot),""))
else:
config = cl_template.iniParser(iniFile)
+ importVars = config.getAreaVars("main")
for varname in self.allVars.keys():
if not varname in self.cache:
- val = self.unserialize("string",config.getVar('main',varname))
+ val = self.unserialize("string",importVars.get(varname,''))
if val:
self.cache[varname] = val.encode('utf-8')
diff --git calculate/lib/format/world.py calculate/lib/format/world.py
index 69bfc4f..7d93488 100644
--- calculate/lib/format/world.py
+++ calculate/lib/format/world.py
@@ -22,7 +22,7 @@ class world(objShare):
"""Класс для обработки конфигурационного файла типа procmail
"""
- _comment = ""
+ _comment = "#"
configName = "world"
configVersion = "0.1"
sepFields = "\n"
@@ -66,15 +66,15 @@ class world(objShare):
for k in txtLines:
textLine = k + endtxtLines[z]
z += 1
- #findComment = self.reComment.search(textLine)
+ findComment = self.reComment.search(textLine)
if not textLine.strip():
field.br = textLine
fields.append(field)
field = fieldData()
- #elif findComment:
- # field.comment = textLine
- # fields.append(field)
- # field = fieldData()
+ elif findComment:
+ field.comment = textLine
+ fields.append(field)
+ field = fieldData()
else:
pars = textLine.strip()
field.name = pars
diff --git calculate/lib/variables/linux.py calculate/lib/variables/linux.py
index be3bbb2..e3e6bdd 100644
--- calculate/lib/variables/linux.py
+++ calculate/lib/variables/linux.py
@@ -240,8 +240,9 @@ class LinuxDataVars(SimpleDataVars):
VariableOsLinuxBuild(systemRoot=systemRoot))
makeprofile = path.join(systemRoot,'etc/make.profile')
if os.path.exists(makeprofile):
- inifile = path.join('/etc',os.readlink('/etc/make.profile'))
- self.flIniFileFrom(makeprofile)
+ inifile = path.join(systemRoot,'etc',
+ os.readlink(path.join(systemRoot,'etc/make.profile')))
+ self.flIniFileFrom(inifile)
inifile = "etc/calculate/calculate.env"
self.flIniFileFrom(path.join(systemRoot,inifile))
iniFile = "etc/calculate/calculate3.env"

@ -1,12 +1,14 @@
AUX calculate-update-3.1.1_alpha1-r1.patch 618 SHA256 c0cb0c41a01602fea0dd05981abcad310dbdeabf4fe92d2134f70cf38be92f80 SHA512 6490fcbfe58122f199ea9be593baa88632c0eb7ac431589c5263514f305b59238391284772d9967ea048c1db3bdea309bf57772dd7be9bac7e7c083eebe7243d WHIRLPOOL 5f090b031dd48db1b5314006d7547e8747fada181e4f7eb11c8e47d1a34c072ffd86b44c86f15a19d95567f3e8f467276902679b62886d9c010f79fb2f36bbdc
AUX calculate-update-3.1.1_alpha1-r2.patch 618 SHA256 c0cb0c41a01602fea0dd05981abcad310dbdeabf4fe92d2134f70cf38be92f80 SHA512 6490fcbfe58122f199ea9be593baa88632c0eb7ac431589c5263514f305b59238391284772d9967ea048c1db3bdea309bf57772dd7be9bac7e7c083eebe7243d WHIRLPOOL 5f090b031dd48db1b5314006d7547e8747fada181e4f7eb11c8e47d1a34c072ffd86b44c86f15a19d95567f3e8f467276902679b62886d9c010f79fb2f36bbdc
AUX calculate-update-3.1.1_alpha2-r1.patch 517 SHA256 aaa1667dd1a62628d4034a7736415bfd48afac330a9a28f58881f2c1254e460e SHA512 faa36e2d68c47f4291cf26630aebb1f5c2d14a43bb6ebf26f49d61bb95311d2f38d4236bf25f82ae123b4ef076edcd20067067d8cf0e93e81bd5a47e00c65a54 WHIRLPOOL abac0ddf34f09828832457f1102136f7bb9460bcbf0f37d8fba20adff4d20bbc626545bfa557e450d6b1fe995d2ea94cf841bf007745dbc9512f04ff8a40c7a5
AUX calculate-update-3.1.1_alpha2-r2.patch 1456 SHA256 1b939d15006b1354713d9acdab42ab1600c44c82132937257687d4eaa9aaea1f SHA512 01106d1bd4c1c40e62089ffec552af7be800bced006d22e84596c4e953be073b06b64ddb1e2e2bced10352c564cc12206653d59fd361b2a667fb8a45f7ddca69 WHIRLPOOL 865ad110b9e20298fd8df27c8ad54f7500f88998e955b9d33e6aae84c1504420392a95bd3d2a25e826521e2c75d3ce41c40ac1e14aa803cbcc3de8679e33ada3
DIST calculate-update-3.1.1_alpha1.tar.bz2 6862 SHA256 2919eff63d2c0dcacd9012a27be2b513a3d610154087840e18840b5118b8899a SHA512 361612066cbf8dd09c40dcd76b3098890442b3e65887fe9c95951cc8c54282e24ad13ee65d6c7f074dab6afef9d7f359a4c4459b2beec3d82970e5d344254d84 WHIRLPOOL 90e536ace678c2f5e11aa464941e2897611aa71c848c19e80956095b87b393d44599cdd7a95faac2edc7c95feb790012bd4e866f51eb5ccf24eeb51c6fff9937
DIST calculate-update-3.1.1_alpha2.tar.bz2 6859 SHA256 99c8593dc5a0e7fe7cb317ebaae93704d56f728fa6d689ca998ded0146e8ff23 SHA512 b2a9fc1c9f41601dbc407786ddb4b46ea1bfd0f1a25eb7eb22b86f8176187c3a5f059d1305574d725059e2903ffa37fd9ad876f6f54e448dc337e1d578485f72 WHIRLPOOL e86f6b1f89c01db2a46701fb7e7e0dcc5e8e29b548adc117c45dfd5b106f6054957b064a86da9beb66c38f3bc4054798266af2d316843d4c3047e098dc7ea487
EBUILD calculate-update-3.1.1_alpha1-r1.ebuild 695 SHA256 931e8ce6f0cc5207e1b0d03ccc97e4cfa147c7928b8550bdd09f46f34df05076 SHA512 e37d6af5b18e3378645a86c51d50e686c9f000e1845e40799d62fba032d357599800b0475a035d1ef3996e6bfb2ab026f4596c9604e6c38bf299662ea4e93a90 WHIRLPOOL 95bb0da3deeb990865ba9e4a91cf1d99f7ebd27ad7524678e4c1765fc454cae7b13364e9d4f5ceced509fd07e8856bbf529391e26f0023efab6f38eff053b4e2
EBUILD calculate-update-3.1.1_alpha1-r2.ebuild 552 SHA256 b6b59aa56455d808e4ffe81848a9323cb1b54b44aee84852a566129f980c93bd SHA512 20f8fefe66e3f78ac04fcb4ceab1a4f117d8fa3c929be32ed2fea609c85e00614b7ca7410700018d85cf9b71d3fa5cf43abcd5e4598dbfe398300d77184b8f84 WHIRLPOOL 01d62b1bdc8e2556f4983b221e9fd6fcc1ef8148eb78b512741d02049c9c8644c291578495b5719bfc3e199cf24b884b0eafabc37fe370a744d1666fd0d9e3e9
EBUILD calculate-update-3.1.1_alpha1.ebuild 552 SHA256 1dca36fe27b9663848f82d88d8184b3e6a45d6dc3bd9d6ad624716895a2e1f83 SHA512 c4c8a7581198242d95f5997db116526a50cc7c87e70a0acc83978a871ead28cedee76f3cc6d3b4fb6b2aa983d64adbbe3aa373b61c47d907485a40d4b6806119 WHIRLPOOL 48da369410fed49486738225bf9453e97b18135ace67260ef12509ff972db21b750bdc3f544c515d1853e646d473296681e6b18c7f914067aa2f354cb6da4e3b
EBUILD calculate-update-3.1.1_alpha2-r1.ebuild 695 SHA256 2fab43b2c30c857cf5d7786661f111bb78f36577a55558fa23e63d35de877cc7 SHA512 6a511a8bb4f0b171b26f8c303e0c69a417cd0e205a72db92f9a8b36f13a22e72e40333f2360643ad1840338e77509093b9a26643747b2bfd7500c8f577fca9c7 WHIRLPOOL f366ef88b08816f1b55bb7245782e4569bb89eff0d8393523ba6f8d50bfe8c479ca95e8199a1cbd6c2e828963e0c85ec8895413eb0d038f5e59fbed9b21bdf8d
EBUILD calculate-update-3.1.1_alpha2-r2.ebuild 695 SHA256 c3882d25978764e6d302a59fa9807765e333ec48325817b1fc0fbd2d57cbe44a SHA512 4ae571441735f32ce3784d2a30381213e6fcc50b04f4fc3f821d0fa84f4fa957fea07c18416eb25a48bbb664ac93031a8f190a1257929fcccd0673246bc76117 WHIRLPOOL d6342b9a0096d1063e6b96762f31b116f50ca78450c7147be13a7673a50cc1eff31f3440d7e681c4fd94e9a73fb5fdbd6d1f531ff40d8813d4b16d9e392a4b31
EBUILD calculate-update-3.1.1_alpha2.ebuild 552 SHA256 b6b59aa56455d808e4ffe81848a9323cb1b54b44aee84852a566129f980c93bd SHA512 20f8fefe66e3f78ac04fcb4ceab1a4f117d8fa3c929be32ed2fea609c85e00614b7ca7410700018d85cf9b71d3fa5cf43abcd5e4598dbfe398300d77184b8f84 WHIRLPOOL 01d62b1bdc8e2556f4983b221e9fd6fcc1ef8148eb78b512741d02049c9c8644c291578495b5719bfc3e199cf24b884b0eafabc37fe370a744d1666fd0d9e3e9
EBUILD calculate-update-3.1.9999.ebuild 530 SHA256 f014911ae52c1eadd9615ab1a2c930eb79aab49f509260bd6573eb3985ce2ec8 SHA512 3523efdb19b9646a0d1dba6d6a4664393d07f9aa666392d355b4596cb1bca8cd80a62bbd7f6db7029c1173ebb2a16e9cf168cea1d7f2c051ba8838c86c234454 WHIRLPOOL a394a23a0277b40cc2e7242b08750638434c3b6bf0f340fec923f90e738618b1cc0e223e327484f95d24f7637e8bebec6dff4b6385b731376f6f8cc8897caf79
MISC metadata.xml 288 SHA256 9ea2bfebe4ac64765041ad92dda5b8f22f5597a4e560458f98996b00b0393b8a SHA512 88886b3e137bcf7038cc4985b786523dfac1c127aff84ad682b919d92b2c51b0b8d8f97ff60e7239a2ef49ec40fb5dcc41a59cb428ed346f1e44044ecd75b698 WHIRLPOOL d4eb5ba4901e10fe9cf440c63a8a9a59b5e6620004306eec3cd162cf902a89510460774a8c407816bf15033062dc8f96a334e7f873801bc6bcd73edeb833f36b

@ -0,0 +1,30 @@
# 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 update Calculate Linux"
HOMEPAGE="http://www.calculate-linux.org/main/en/calculate2"
LICENSE="Apache-2.0"
SLOT="3"
KEYWORDS=""
IUSE=""
DEPEND="~sys-apps/calculate-core-3.1.1_alpha2"
RDEPEND="${DEPEND}"
src_unpack() {
unpack "${A}"
cd "${S}"
# apply revision changes
epatch "${FILESDIR}/calculate-update-3.1.1_alpha2-r2.patch"
}

@ -0,0 +1,35 @@
diff --git update/cl_update.py update/cl_update.py
index f6f83a6..67ec6cb 100644
--- update/cl_update.py
+++ update/cl_update.py
@@ -55,13 +55,15 @@ class Update:
self.closeClTemplate()
self.clVars.Set("cl_chroot_path","/", True)
self.clTempl = ProgressTemplate(self.setProgress,self.clVars,
- cltObj=False)
+ cltObj=False,
+ printSUCCESS=self.printSUCCESS,
+ printWARNING=self.printWARNING,
+ printERROR=self.printERROR)
dirsFiles = self.clTempl.applyTemplates()
if self.clTempl.getError():
self.printERROR(self.clTempl.getError().strip())
return False
else:
- print dirsFiles
return dirsFiles
def initVars(self,datavars=None):
diff --git update/cl_wsdl_update.py update/cl_wsdl_update.py
index 784dcff..c3b4a13 100644
--- update/cl_wsdl_update.py
+++ update/cl_wsdl_update.py
@@ -53,7 +53,7 @@ class Wsdl:
"""
@rpc(Integer, UpdateInfo, _returns = Array(ReturnedMessage))
@core_method(category=__('Update'),title=__('Update world'),
- image='preferences-desktop',
+ image='software-properties,preferences-desktop',
gui=True,command='cl-update',
rights=['update'])
def update(self, sid, info):

@ -77,6 +77,7 @@ EBUILD calculate-utilities-3.1.1_alpha1-r6.ebuild 818 SHA256 adfb9f04d3955009d8f
EBUILD calculate-utilities-3.1.1_alpha1-r7.ebuild 818 SHA256 99ebd5214de207c93950e2d3d70ed0a295ebd1422e4c509d8fa669ba47695e16 SHA512 551992021bebbaae7617c516d7a83dc76b65033137eff0a6a763344a900150d21f33613382c1a67de6d5eb21d97a34b69922bcb3eeb7033193c6f5c962e0649b WHIRLPOOL 05e47536a0aa2cebb5797be69e657c8f93c2191108db18507c0ee308955655037a0e6185958b482509d9525bf554c49314c201ea7afc653a5de35750f8890aba
EBUILD calculate-utilities-3.1.1_alpha1.ebuild 762 SHA256 d9ae3566270961ca983708b3215cfb608f5a4b106d97d89d70de24b9ac821d5b SHA512 f60f7dc7b51de31d98a8c9d0ed3350bb2b6ee84fb84d0f404d8bb21683b2753bae836fd38e3413a1b44e4bd290678324781db4de9fd05aa17cfe89d5bd550129 WHIRLPOOL cbb91ef628b4072c8aac77426a5f364094639da9b1b6f9a1dfb1f17cf223858aa17cfca68abcf1b4c5ababf5814b07fb1c80c5dbd776cfbb93ed5b1c69b145c4
EBUILD calculate-utilities-3.1.1_alpha2-r1.ebuild 806 SHA256 97f192e6d4915d4e78b1dc6667475f0bdce69ab2c362cbf1f3b936ab5054eb9a SHA512 f775cc82974e3dda8563df54f5ef1a0fe0970cff85cb5c9bb2f0829637f6893794b79fb9133bdcd438405b2925b1d9aa2e653396e87fd24d8f1bf70ab364a882 WHIRLPOOL 32da5850db46b0f6e88239e2ae3d86f54b0a6be428b83003a8464349c025a2c050f299bcb9d4d4805cb2d4183f7a1e7c28cbb8393ae72a041bccf5f15b438c3a
EBUILD calculate-utilities-3.1.1_alpha2-r10.ebuild 818 SHA256 7c0c4a9334b4412cf84303ef6a2f62ae51dc485a589e78cfcbe280e3c018f0af SHA512 fe27fcf641f85a15ae3bfcd335fea2b39b6f2a160773598eace6c1485b47fc85543921a40c5e0342b5dc6fd7650000296ecce95eee483ba0716e17be472f267b WHIRLPOOL e00d0ab3db3424da11e75b65987d8f5886b472588072a4756d450c27b659686c9432844ab41f7f5f469a73a307b265bd8c52927c210b661f640d3739bfd34f4d
EBUILD calculate-utilities-3.1.1_alpha2-r2.ebuild 812 SHA256 a3f7e50a7d5e7ee612a797b144bb99deb8c4a6a5d52e53fe9db026f834e46bae SHA512 14aa168f9a77d5a1fe099e5fbe04c48287b5524bf099180f7d62739f9ce113358ed092ae50d2cd019dbd9cf6ccc643491accf6fcbf3963355ec8e3976ec230d7 WHIRLPOOL a7c7a8c12436ac1fc0847872c8ed2bfe4be49aec8d896ca7b52cfc08d8f0ca1625d0ad7485932b219f01cb3332d949991c713c090fba14dd42e95354620d996c
EBUILD calculate-utilities-3.1.1_alpha2-r3.ebuild 812 SHA256 0487e98bdecdd898deb5226b0d65aef9b34f5c0338865484718fece5afb2e59f SHA512 22d698366844041accad94a7464f9f9bdfaf137328ae628e7e37ecf080293f2b472fabceca1098ad5a09254430e01b44fb01ae2e20dd5c6f53abfe1cb97f4722 WHIRLPOOL faddda116dca5eaa52c6b9d505923cae96382f7f39d1921d1c84816af484f08b7e9da856b9514e8133cd8f8daa74782930223a14a3f90222a76cbf691bd159ba
EBUILD calculate-utilities-3.1.1_alpha2-r4.ebuild 815 SHA256 12c8d2ca9c3813aaa2ac0f831ea5b362c99adc09b3018070c143f681ede69c70 SHA512 42d207ebffddf00d5863bde87ca4ddf247df4032ade14cdb488ea78aa47a45fd2f4933fe8dd1d8bf1e8ce590feaeba032643c65cd5fbb309b6f33ba3e503a5cb WHIRLPOOL 1d41a910d291f246fec99376c3be44abf51829cab9ff2067ff2f5e1a15bfe16691f9013ba5aeee5a0d549ef880249de0b472538df8acc6798f276358e0da911f

@ -0,0 +1,26 @@
# 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=""
IUSE="cl_consolegui cl_client cl_desktop cl_console"
RDEPEND="${RDEPEND}
=sys-apps/calculate-install-3.1.1_alpha2-r3
=sys-apps/calculate-i18n-3.1.1_alpha2
=sys-apps/calculate-lib-3.1.1_alpha2-r7
=sys-apps/calculate-core-3.1.1_alpha2-r1
=sys-apps/calculate-update-3.1.1_alpha2-r2
cl_client? ( =sys-apps/calculate-client-3.1.1_alpha2 )
cl_desktop? ( =sys-apps/calculate-desktop-3.1.1_alpha2-r1 )
cl_consolegui? ( =sys-apps/calculate-console-gui-3.1.1_alpha2 )
cl_console? ( =sys-apps/calculate-console-3.1.1_alpha2 )
"
Loading…
Cancel
Save