diff mbox

[rdma-core,2/3] cbuild: support .tar.(gz|bz|>...) extensions

Message ID 8fac95c5-7469-e780-a167-6015a4a0e490@suse.de (mailing list archive)
State Accepted
Headers show

Commit Message

Nicolas Morey-Chaisemartin Aug. 4, 2017, 4:59 p.m. UTC
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
---
 buildlib/cbuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/buildlib/cbuild b/buildlib/cbuild
index efc039bf..5228ec1b 100755
--- a/buildlib/cbuild
+++ b/buildlib/cbuild
@@ -420,7 +420,7 @@  def run_rpm_build(args,spec_file,env):
         os.mkdir(os.path.join(tmpdir,"tmp"));
 
         subprocess.check_call(["git","archive",
-                               "--prefix","%s/"%(os.path.splitext(tarfn)[0]),
+                               "--prefix","%s/"%(os.path.splitext(os.path.splitext(tarfn)[0])[0]),
                                "--output",os.path.join(tmpdir,"SOURCES",tarfn),
                                "HEAD"]);