From: Ken Dreyer Date: Tue, 14 Apr 2015 23:22:06 +0000 (-0600) Subject: build-ceph-rpm.sh: terminate on unpackaged files X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=8d494f42e9aebf0979648948effa4fc63ac1ecf2;p=autobuild-ceph.git 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 --- 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.