summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2012-03-06 18:19:49 +0100
committerTollef Fog Heen <tfheen@err.no>2012-03-06 18:19:49 +0100
commitb5aa13e6011787046d5ea533c6ba02af15bcdba9 (patch)
tree1237d353f0c57aca5c7ab8405527b55d06f55493
parente483fa0dded288d599be3ea4e9499419b013f069 (diff)
downloadsystemd-b5aa13e6011787046d5ea533c6ba02af15bcdba9.tar.gz
Fix up source hook
-rwxr-xr-xdebian/systemd-hack-up-the-source.hook16
1 files changed, 3 insertions, 13 deletions
diff --git a/debian/systemd-hack-up-the-source.hook b/debian/systemd-hack-up-the-source.hook
index 62eea54e96..abbf4d653a 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
}