diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-08-03 20:09:53 -0400 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-08-03 20:09:53 -0400 |
commit | e8b6b491813038b87ce01506478fdabc190976e0 (patch) | |
tree | db03c6284897d85a133247cdc9afa7055a6f59d3 /gbp-pq | |
parent | f4cc8e243b8aa990a63604e4e87469b51a54dc72 (diff) |
Use the maintainer of the Debian package as fallback patch author
Diffstat (limited to 'gbp-pq')
-rwxr-xr-x | gbp-pq | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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() { |