Whamcloud - gitweb
LU-400 don't unroll empty commits into patches
authorBrian J. Murrell <brian@whamcloud.com>
Tue, 7 Jun 2011 18:10:25 +0000 (14:10 -0400)
committerJohann Lombardi <johann@whamcloud.com>
Wed, 8 Jun 2011 18:55:56 +0000 (11:55 -0700)
The patch unrolling tool, build/extract_patches, currently will
create an empty dpatch if a commit is empty. This causes dpatch
some heartburn, so just skip empty commits.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: Ice0e5fad3c1dd01b507838a8b449536d016b8ffb
Reviewed-on: http://review.whamcloud.com/908
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Hudson
build/autoMakefile.am.toplevel
build/extract_patches

index e161125..e55cb0a 100644 (file)
@@ -107,7 +107,8 @@ EXTRA_DIST = @PACKAGE_TARNAME@.spec                                 \
        build/autoconf/lustre-build-darwin.m4                           \
        build/autoconf/lustre-build.m4 build/rdac_spec                  \
        build/mptlinux.spec.patch build/patches                         \
-       build/funcs.sh build/find_linux_rpms build/exit_traps.sh
+       build/funcs.sh build/find_linux_rpms build/exit_traps.sh        \
+       build/extract_patches
 
 rpms-real: @PACKAGE_TARNAME@.spec dist Makefile
        CONFIGURE_ARGS=$$(echo $$(eval echo $(ac_configure_args)) | sed -re 's/--(en|dis)able-tests//'); \
index 9c5c5d2..de88c07 100755 (executable)
@@ -33,7 +33,7 @@ if [ $ffw -gt 0 ]; then
        mkdir ../patched
        rm -f 00list *.dpatch
        for file in [0-9][0-9][0-9][0-9]-*.patch; do
-               if ! grep -q "^--- a/debian/" $file; then
+               if [ -s $file ] && ! grep -q "^--- a/debian/" $file; then
                        desc=$(cat $file | sed -e '1,/^$/d' \
                                                 -e '/^---$/,$d')
                        dpatch_file=${file/.patch/.dpatch}