This is an automated email from the ASF dual-hosted git repository.

kkarantasis pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new 59d053b  MINOR: Remove unsupported rsync and ssh commands from 
release.py (#11309)
59d053b is described below

commit 59d053b56eb2af3a9b2845e717e307eb74187224
Author: Konstantine Karantasis <[email protected]>
AuthorDate: Wed Sep 8 13:28:07 2021 -0700

    MINOR: Remove unsupported rsync and ssh commands from release.py (#11309)
    
    ssh and rsync access has been removed from home.apache.org.
    Removing the commands from release.py and replacing them with a note to 
make sure they are manually uploaded with an sftp client instead.
    
    Reviewers: David Jacot <[email protected]>, Ismael Juma 
<[email protected]>
---
 release.py | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/release.py b/release.py
index 1f45b7c..f43e244 100755
--- a/release.py
+++ b/release.py
@@ -619,16 +619,10 @@ for filename in os.listdir(artifacts_dir):
     cmd("Generating SHA512 for " + full_path, "gpg --print-md sha512 %s > 
%s.sha512" % (fname, fname), shell=True, cwd=dir)
 
 cmd("Listing artifacts to be uploaded:", "ls -R %s" % artifacts_dir)
-if not user_ok("Going to upload the artifacts in %s, listed above, to your 
Apache home directory. Ok (y/n)?): " % artifacts_dir):
-    fail("Quitting")
 
 cmd("Zipping artifacts", "tar -czf %s.tar.gz %s" % (artifact_name, 
artifact_name), cwd=work_dir)
-cmd("Uploading artifacts in %s to your Apache home directory" % artifacts_dir, 
"rsync %s.tar.gz %[email protected]:%s.tar.gz" % (artifact_name, apache_id, 
artifact_name), cwd=work_dir)
-cmd("Extracting artifacts in Apache public_html directory",
-    ["ssh",
-     "%[email protected]" % (apache_id),
-     "mkdir -p public_html && rm -rf public_html/%s && mv %s.tar.gz 
public_html/ && cd public_html/ && tar -xf %s.tar.gz && rm %s.tar.gz" % 
(artifact_name, artifact_name, artifact_name, artifact_name)
-     ])
+if not user_ok("Have you uploaded artifacts in %s, listed above, to 
public_html in your Apache home directory (y/n)?: " % artifacts_dir):
+    fail("Ok, giving up")
 
 with open(os.path.expanduser("~/.gradle/gradle.properties")) as f:
     contents = f.read()

Reply via email to