aports/community/patchwork/0002-remove-uneeded-bashism-from-tools-and-change-path.patch
Francesco Colista 3f5e3dc47a community/patchwork: upgrade to 3.0.0
removed pwclient subpackage since now is shipped as separated
package. Is no longer part of patchwork repository
2021-02-14 16:08:10 +00:00

35 lines
1.1 KiB
Diff

diff --git a/tools/patchwork-update-commits b/tools/patchwork-update-commits
index 269dac9..b7bc2ec 100755
--- a/tools/patchwork-update-commits
+++ b/tools/patchwork-update-commits
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Patchwork - automated patch tracking system
# Copyright (C) 2010 Jeremy Kerr <jk@ozlabs.org>
@@ -18,3 +18,4 @@ while read -r commit; do
hash=$(git diff "$commit~..$commit" | python "$PW_DIR/hasher.py")
pwclient update -s Accepted -c "$commit" -h "$hash"
done
+
diff --git a/tools/post-receive.hook b/tools/post-receive.hook
index 9f2f050..0136ca1 100755
--- a/tools/post-receive.hook
+++ b/tools/post-receive.hook
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Patchwork - automated patch tracking system
# Copyright (C) 2010 martin f. krafft <madduck@madduck.net>
@@ -8,7 +8,7 @@
# Git post-receive hook to update Patchwork patches after Git pushes
set -eu
-PW_DIR=/opt/patchwork/patchwork
+PW_DIR=/usr/share/webapps/patchwork/patchwork
#TODO: the state map should really live in the repo's git-config
STATE_MAP="refs/heads/master:Accepted"