]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build: apply 604882e9 to ceph-build 1482/head
authorKefu Chai <kchai@redhat.com>
Tue, 14 Jan 2020 14:42:09 +0000 (22:42 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 14 Jan 2020 14:42:44 +0000 (22:42 +0800)
to address following failure

+ cd ceph-14.2.6 ceph-14.2.6.tar.bz2 ceph-14.2.6.tar.gz
/tmp/jenkins10747333749307639424.sh: line 1058: cd: too many arguments

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-build/build/setup_deb
ceph-build/build/setup_rpm

index 167f721f86849e30027ae92fbe17883e51bafcb0..af9a8fca4cfbf25a1b8903a19b8cd1056ea7b171 100644 (file)
@@ -26,7 +26,7 @@ $SUDO apt-get install -y lsb-release
 # unpack the tar.gz that contains the debian dir
 cd dist
 tar xzf *.orig.tar.gz
-cd ceph-*
+cd $(basename *.orig.tar.gz .orig.tar.gz | sed s/_/-/)
 pwd
 
 BRANCH=`branch_slash_filter $BRANCH`
index 689d750f80714fa76dde01dbdc057f19ea47c103..601acb94062b893a293d6ea5d72c99c2065cc5d9 100644 (file)
@@ -26,7 +26,7 @@ $SUDO yum install -y redhat-lsb-core
 # unpack the tar.gz that contains the debian dir
 cd dist
 tar xzf *.orig.tar.gz
-cd ceph-*
+cd $(basename *.orig.tar.gz .orig.tar.gz | sed s/_/-/)
 pwd
 
 $SUDO yum install -y yum-utils