mirror of https://github.com/apache/lucene.git
read() returns a str which is already UTF-8 and doesn't have a decode method anymore
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1468841 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
836cb113f1
commit
3199f6e3bf
|
@ -115,7 +115,7 @@ def prepare(root, version, gpgKeyID, doTest):
|
||||||
def push(version, root, rev, rcNum, username):
|
def push(version, root, rev, rcNum, username):
|
||||||
print('Push...')
|
print('Push...')
|
||||||
dir = 'lucene-solr-%s-RC%d-rev%s' % (version, rcNum, rev)
|
dir = 'lucene-solr-%s-RC%d-rev%s' % (version, rcNum, rev)
|
||||||
s = os.popen('ssh %s@people.apache.org "ls -ld public_html/staging_area/%s" 2>&1' % (username, dir)).read().decode('UTF-8')
|
s = os.popen('ssh %s@people.apache.org "ls -ld public_html/staging_area/%s" 2>&1' % (username, dir)).read()
|
||||||
if 'no such file or directory' not in s.lower():
|
if 'no such file or directory' not in s.lower():
|
||||||
print(' Remove old dir...')
|
print(' Remove old dir...')
|
||||||
run('ssh %s@people.apache.org "chmod -R u+rwX public_html/staging_area/%s; rm -rf public_html/staging_area/%s"' %
|
run('ssh %s@people.apache.org "chmod -R u+rwX public_html/staging_area/%s; rm -rf public_html/staging_area/%s"' %
|
||||||
|
|
Loading…
Reference in New Issue