From 8d494f42e9aebf0979648948effa4fc63ac1ecf2 Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Tue, 14 Apr 2015 17:22:06 -0600 Subject: [PATCH] build-ceph-rpm.sh: terminate on unpackaged files As Ceph changes and new files get installed by default, we need to ensure that the commits which create these files also update the packaging files lists as well. One way to do this is to tell Gitbuilder to stop skipping unpackaged files in the RPMs. This will cause Gitbuilder builds to indicate a failure when new files get added without packaging updates. Signed-off-by: Ken Dreyer --- build-ceph-rpm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-ceph-rpm.sh b/build-ceph-rpm.sh index 5b16734..fed6c5a 100755 --- a/build-ceph-rpm.sh +++ b/build-ceph-rpm.sh @@ -113,7 +113,7 @@ cp ceph.spec /tmp/ceph.spec # Build RPMs BUILDAREA=`readlink -fn ${BUILDAREA}` ### rpm wants absolute path -rpmbuild -ba --define "_topdir ${BUILDAREA}" --define "_unpackaged_files_terminate_build 0" ceph.spec +rpmbuild -ba --define "_topdir ${BUILDAREA}" ceph.spec # Create and build an RPM for the repository @@ -217,7 +217,7 @@ gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/autobuild.asc EOF # End of ceph.repo file -rpmbuild -bb --define "_topdir ${BUILDAREA}" --define "_unpackaged_files_terminate_build 0" ${BUILDAREA}/SPECS/ceph-release.spec +rpmbuild -bb --define "_topdir ${BUILDAREA}" --define ${BUILDAREA}/SPECS/ceph-release.spec # Add Dependencies. -- 2.39.5