aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp-pq
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-08-03 20:09:53 -0400
committerGuido Günther <agx@sigxcpu.org>2010-08-03 20:09:53 -0400
commite8b6b491813038b87ce01506478fdabc190976e0 (patch)
treedb03c6284897d85a133247cdc9afa7055a6f59d3 /gbp-pq
parentf4cc8e243b8aa990a63604e4e87469b51a54dc72 (diff)
Use the maintainer of the Debian package as fallback patch author
Diffstat (limited to 'gbp-pq')
-rwxr-xr-xgbp-pq8
1 files changed, 5 insertions, 3 deletions
diff --git a/gbp-pq b/gbp-pq
index b8af583f..e4de9322 100755
--- a/gbp-pq
+++ b/gbp-pq
@@ -24,7 +24,7 @@ is_patch_queue()
run_git()
{
set -e
- git $@
+ git "$@"
set +e
}
@@ -78,6 +78,7 @@ pq_import()
local pq="patch-queue/$branch"
local patches=debian/patches/
+
if is_patch_queue $branch; then
echo "Already on a patch-queue branch \"$branch\" - doing nothing."
return 1
@@ -93,8 +94,9 @@ pq_import()
return 0
fi
- QUILT_PATCHES=$patches run_git quiltimport
-}
+ maintainer="$(sed -n -e 's/Maintainer: \+\(.*\)/\1/p' debian/control)"
+ QUILT_PATCHES=$patches run_git quiltimport --author "$maintainer"
+}
pq_drop()
{