From: Tollef Fog Heen Date: Tue, 5 Jun 2012 20:42:31 +0000 (+0200) Subject: Error when patches are empty X-Git-Tag: 44-2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59eb094908f55aa3bbcb0055f3a1b4f3745df3bf;p=systemd Error when patches are empty --- 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