From: Tollef Fog Heen Date: Tue, 6 Mar 2012 17:19:49 +0000 (+0100) Subject: Fix up source hook X-Git-Tag: 43-1~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5aa13e6011787046d5ea533c6ba02af15bcdba9;p=systemd Fix up source hook --- diff --git a/debian/systemd-hack-up-the-source.hook b/debian/systemd-hack-up-the-source.hook index 62eea54e..abbf4d65 100755 --- a/debian/systemd-hack-up-the-source.hook +++ b/debian/systemd-hack-up-the-source.hook @@ -43,19 +43,9 @@ do_patches (){ \#*) ;; *) - count=$(wc -l "$patch_dir/series" | cut -f1 -d' ') - if PATCHES="$(git --git-dir "$REPO_DIR/.git" diff "$line" > "$patch_dir/$line")"; then - if [ -n "$PATCHES" ]; then - echo "$PATCHES" | sed -e "s,$patch_dir/,,g" -e 's, ,\n,g' >> "$patch_dir/series" - else - echo "Warning: no patches from $line" - fi - else - echo "git --git-dir '$REPO_DIR/.git' diff '$line'" - echo "failed." - exit 1 - fi - esac + git --git-dir "$REPO_DIR/.git" diff "$line" > "$patch_dir/$line" + ;; + esac done }