ewo-0.4.1 updated: Fixing empty genlop output

This commit is contained in:
Kolan Sh 2014-06-17 12:59:23 +04:00
parent 022d6d5acf
commit 5fedf244d2
3 changed files with 20 additions and 1 deletions

View File

@ -1,2 +1 @@
DIST ewo-0.4.1.tar.bz2 15314 SHA256 25d84b25a02253a7c491958ef99becba34a36fa2554c5d829b92d65c0a62b10b SHA512 6229fdc23d6c504066a315a61d034139fa2271011418d86cdbfe9138e37481f3e5ccd94014caa22dbdd78a4ed0970f33ee394c2ce746222a8fb696860c138706 WHIRLPOOL 8aa3463bb2529e82a1f2cee6d2d9b9780eb283e0f53062311de9ea0973bc88dcc8e3c2c5179ec96c323a9cde2f2e943e26ef8c28370c70ee83790c3fbdd57b9c
EBUILD ewo-0.4.1.ebuild 594 SHA256 58dfc4e61045eb0c7bbada88981f13cfa3866c2a5c3469077ccb20850e05c349 SHA512 47b6bf3c907c849394c7895c7bd2546028600ced95d944758e2ccd96cc32e8ab9bbfac4bf70b30e7ff1a45fc195d2e3937b71d05322da20f1368dcc7b40550cc WHIRLPOOL 57ec315f020327d0d19ce2d50f28a550899ace33855df1ce577b44b05cb58ab7735a94604c5f4a27a6c82296dc648d5a9def78a021c95489558d2294c5ed29d8

View File

@ -2,6 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
inherit eutils
DESCRIPTION="Emerge (-e) World Optimizer (EWO)"
@ -16,6 +18,10 @@ DEPEND=""
RESTRICT="primaryuri"
src_prepare() {
epatch "${FILESDIR}/fix_empty_genlop_output.patch"
}
src_install() {
newsbin ${PN}.py ${PN} || die "Install failed"
dodoc AUTHORS README

View File

@ -0,0 +1,14 @@
--- ewo.py 2010-01-29 18:44:36.000000000 +0300
+++ ewo.py 2014-06-17 12:40:43.714055586 +0400
@@ -67,6 +67,11 @@
raw_genlop_pattern = re.compile('\s+rsync\'ed at >>> ([^\s]+.*)')
raw_genlop = commands.getstatusoutput('genlop -rn | tail -n3')
+
+ # Fixing empty genlop output
+ if raw_genlop[1] == "":
+ raw_genlop = commands.getstatusoutput ('echo " rsync\'ed at >>> Sat Jan 1 00:00:00 2000"')
+
if raw_genlop[0] == 0:
# index -1 means last list element
raw_latest_sync = raw_genlop[1].split('\n')[-1]