]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/build_utils.sh: avoid "No such file or directory" errors
authorKefu Chai <kchai@redhat.com>
Fri, 10 Jul 2020 07:05:52 +0000 (15:05 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Jul 2020 02:12:29 +0000 (10:12 +0800)
it's highlighted by jenkins, and it's distracting even we "|| true" this
command.

Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh

index 264ce1af62730a734ff6eef4f8c0d9edeb7bd9d2..4466d407871f7481c6138d92497e51dd44cd84bf 100644 (file)
@@ -1093,7 +1093,9 @@ setup_rpm_build_area() {
     mkdir -p ${build_area}/{SOURCES,SRPMS,SPECS,RPMS,BUILD}
     cp -a ceph-*.tar.bz2 ${build_area}/SOURCES/.
     cp -a ceph.spec ${build_area}/SPECS/.
-    cp -a rpm/*.patch ${build_area}/SOURCES/. || true
+    for f in rpm/*.patch; do
+        cp -a $f ${build_area}/SOURCES/.
+    done
     ### rpm wants absolute path
     echo `readlink -fn $build_area`
 }