From 59eb094908f55aa3bbcb0055f3a1b4f3745df3bf Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 5 Jun 2012 22:42:31 +0200 Subject: [PATCH] Error when patches are empty --- debian/systemd-hack-up-the-source.hook | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/systemd-hack-up-the-source.hook b/debian/systemd-hack-up-the-source.hook index 4cb805e1..7ad31b44 100755 --- a/debian/systemd-hack-up-the-source.hook +++ b/debian/systemd-hack-up-the-source.hook @@ -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 -- 2.39.5