]> err.no Git - systemd/commitdiff
Error when patches are empty
authorTollef Fog Heen <tfheen@err.no>
Tue, 5 Jun 2012 20:42:31 +0000 (22:42 +0200)
committerTollef Fog Heen <tfheen@err.no>
Tue, 5 Jun 2012 20:42:31 +0000 (22:42 +0200)
debian/systemd-hack-up-the-source.hook

index 4cb805e1e390534a4c44526314aa0b013c59875b..7ad31b44c3d3ced70f1438e49925feb46625c114 100755 (executable)
@@ -45,6 +45,10 @@ do_patches (){
            *)
                git --git-dir "$REPO_DIR/.git" diff "$line" > "$patch_dir/$line"
                 echo "$line" >> "$patch_dir/series"
+                if [ ! -s "$patch_dir/$line" ]; then
+                    echo "$line generated empty patch, please fix."
+                    exit 1
+                fi
                 ;;
         esac
     done