www-apps/lektor: patch rsync publisher for python3 compatibility

This commit is contained in:
Joerg Deckert 2017-08-11 16:25:48 +02:00
parent 45ac32ef51
commit 080bae32c1
3 changed files with 25 additions and 1 deletions

View File

@ -1,2 +1,3 @@
AUX publisher-rsync-python3.diff 749 SHA256 6fecb96e893b021af696c707a585b8959330f8a5a0fc3fd69ad4092a56219424 SHA512 095d650554e7ff452a0c3a33a30445a6e292daa388f7d98b7353daaba828662db15e779f8fd8396b660b783aef5b50df7a3b68d514b1188d6a97617544835b7d WHIRLPOOL 8de2c1eb843c1a602763923fbaf6df3b6a9d3e73a43e1d2d6f00aa485215ca9491c4b66cde675ef6d4581e45f3ba1d2f293ee4cb4a76d5368c7af7b8be94d2a3
DIST lektor-3.0.1.tar.gz 943963 SHA256 3aa7266d792e35b0a3b49fd0d8d8b4521e4f052301912124d7421f4551c6de58 SHA512 de9f82fcbc3f66623a63f262f9ce4365622323b454c9d1d0d4724deed055fcc54ecf66e4238dc4638ea8c6b574c9c07fc0d1b505d28e502d3aa76d8b202c5b5c WHIRLPOOL 055a9ecb00baa5fff01a3281300ec55de4b823e76ddbcaaad19a90510bb04b793330a01c4b2ca76df9265799d3499242f4c2d496883e8c5cb24d0d4c74483b41
EBUILD lektor-3.0.1.ebuild 876 SHA256 8b5e02200ce7d2a402aa4882ff7d0e86fd7f223c089325eb7e6c019a3f3cb19a SHA512 0dcf37013035f7afa10d8474da281f4c274215b77f24ef3b217f71b17879f867074f92b211ff92e96c486210256f2ecca6b2202f00edf844bc2d229c141fc02d WHIRLPOOL edc9da9034db6ef85f0885d73a3d4757aea4d44e8d89b3b531ebfbf2e10b4971e5f0ca23fe17626fcf2703a040aa7c4c97750ac0106231f59c05450678832b0b
EBUILD lektor-3.0.1.ebuild 1000 SHA256 86b23e43e4ac486afc17684b53a60d6b5888f2bb534d7880245344e6dbe18546 SHA512 eba7f906f94e05be4aad92ce3966bc3b3cc65f601a32ae3015efe933881ab27ff867fea8156d89164dc6c4d029e78bcdcb288d7d21dc78c17e56a8c88585a2cf WHIRLPOOL b2aa1b84d6c528d071a75dabbd8d0b6952ab941d181d81a621acb0ac5f3b29d2d755793190572b39fae7ea385e81f2a745f1a338a032fc787dbbcef775ad863e

View File

@ -0,0 +1,16 @@
diff -Naur lektor-3.0.1.orig/lektor/publisher.py lektor-3.0.1/lektor/publisher.py
--- lektor-3.0.1.orig/lektor/publisher.py 2017-06-13 01:52:29.000000000 +0200
+++ lektor-3.0.1/lektor/publisher.py 2017-08-11 16:09:12.000000000 +0200
@@ -217,10 +217,10 @@
username = credentials.get('username') or target_url.username
if username:
- target.append(username.encode('utf-8') + '@')
+ target.append(username + '@')
target.append(target_url.ascii_host)
- target.append(':' + target_url.path.encode('utf-8').rstrip('/') + '/')
+ target.append(':' + target_url.path.rstrip('/') + '/')
argline.append(self.output_path.rstrip('/\\') + '/')
argline.append(''.join(target))

View File

@ -29,6 +29,13 @@ RDEPEND=""
DOCS=( CHANGES LICENSE README.md )
python_prepare_all() {
local PATCHES=(
"${FILESDIR}/publisher-rsync-python3.diff"
)
distutils-r1_python_prepare_all
}
src_compile() {
emake
}