summaryrefslogtreecommitdiff
path: root/gbp/scripts/common/pq.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/scripts/common/pq.py')
-rw-r--r--gbp/scripts/common/pq.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gbp/scripts/common/pq.py b/gbp/scripts/common/pq.py
index 4d69c7f..ec3f8d7 100644
--- a/gbp/scripts/common/pq.py
+++ b/gbp/scripts/common/pq.py
@@ -154,15 +154,16 @@ def apply_and_commit_patch(repo, patch, topic=None):
'email': patch.email,
'date': patch.date }
+ patch_fn = os.path.basename(patch.path)
if not (patch.author and patch.email):
name, email = get_maintainer_from_control()
if name:
gbp.log.warn("Patch '%s' has no authorship information, "
- "using '%s <%s>'" % (patch.path, name, email))
+ "using '%s <%s>'" % (patch_fn, name, email))
author['name'] = name
author['email'] = email
else:
- gbp.log.warn("Patch %s has no authorship information")
+ gbp.log.warn("Patch '%s' has no authorship information" % patch_fn)
repo.apply_patch(patch.path, strip=patch.strip)
tree = repo.write_tree()