]> err.no Git - systemd/commitdiff
Fix up source hook
authorTollef Fog Heen <tfheen@err.no>
Tue, 6 Mar 2012 17:19:49 +0000 (18:19 +0100)
committerTollef Fog Heen <tfheen@err.no>
Tue, 6 Mar 2012 17:19:49 +0000 (18:19 +0100)
debian/systemd-hack-up-the-source.hook

index 62eea54e96a47c5615ffe4a0e96f80d442936518..abbf4d653a5559ab94604f3cea951f397554f616 100755 (executable)
@@ -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
 }