]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-dev-build: Don't try to cd into tarballs 1462/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 18 Dec 2019 15:05:43 +0000 (10:05 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 18 Dec 2019 15:05:43 +0000 (10:05 -0500)
Fixes:

```
+ cd dist
+ tar xzf ceph_15.0.0-8623-g8a4458f.orig.tar.gz
+ cd ceph-15.0.0-8623-g8a4458f ceph-15.0.0-8623-g8a4458f.tar.bz2 ceph-15.0.0-8623-g8a4458f.tar.gz
/tmp/jenkins8482303231462049247.sh: line 1064: cd: too many arguments
```

Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-dev-build/build/setup_rpm

index 13c67f44652c99d96270d8023f9fc4b8585f901d..9fafd209f3c727315a18b1c3b2078460f9078822 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