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

achennaka pushed a commit to branch branch-1.18.x
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit f0355f7cbaa0fae74286b5c6ad0e7c119fb2cd13
Author: root <[email protected]>
AuthorDate: Thu Oct 3 18:19:07 2024 -0700

    [build] Fix the directory creation
    
    Fixes the recursive directory creation which according to
    python documentation [1] should be os.makedirs() and not
    os.path.makedirs() which results in the below error:
    AttributeError: module 'posixpath' has no attribute 'makedirs'
    
    1.
    https://docs.python.org/2.6/library/os.html#os.makedirs
    https://docs.python.org/3.11/library/os.html#os.makedirs
    
    Change-Id: Ifef12fd681050c5d1e6841070fdd754a7d436f8f
    Reviewed-on: http://gerrit.cloudera.org:8080/21883
    Reviewed-by: Alexey Serbin <[email protected]>
    Tested-by: Marton Greber <[email protected]>
    Reviewed-by: Marton Greber <[email protected]>
    (cherry picked from commit c32708d5b957514420aaa13953c25db8940fe7cb)
    Reviewed-on: http://gerrit.cloudera.org:8080/21889
    Tested-by: Abhishek Chennaka <[email protected]>
---
 build-support/build_source_release.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build-support/build_source_release.py 
b/build-support/build_source_release.py
index 933e768dc..7e5b24010 100755
--- a/build-support/build_source_release.py
+++ b/build-support/build_source_release.py
@@ -74,7 +74,7 @@ def create_tarball():
   artifact_name = "apache-kudu-%s" % get_version_number()
   build_dir = os.path.join(ROOT, "build")
   if not os.path.exists(build_dir):
-    os.path.makedirs(build_dir)
+    os.makedirs(build_dir)
   tarball_path = os.path.join(build_dir, artifact_name + ".tar.gz")
   print("Exporting source tarball...")
   subprocess.check_output(["git", "archive",

Reply via email to