diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-11-21 22:42:58 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-11-21 23:23:00 +0100 |
commit | af07c40b98e2cd45ecada5bf9f0d4d2a85ed7a05 (patch) | |
tree | 565e028044f63f374fe9fda59daf5a2c48d4c716 /gbp/scripts/pq.py | |
parent | 984a539183af87f6aed6786e0cacdcd5adc56676 (diff) |
gbp-pq: Instead of looking for the signature don't let git generate it
Thanks: Robert Luberda
Diffstat (limited to 'gbp/scripts/pq.py')
-rw-r--r-- | gbp/scripts/pq.py | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/gbp/scripts/pq.py b/gbp/scripts/pq.py index a96b7428..c44dbb88 100644 --- a/gbp/scripts/pq.py +++ b/gbp/scripts/pq.py @@ -86,21 +86,11 @@ def write_patch(patch, options): # Skip first line (From <sha1>) old.readline() for line in old: - if in_patch: - if line == '-- \n': - # Found final signature, we're done: - tmp.write(line) - break - else: - if line.lower().startswith("gbp-pq-topic: "): - topic = line.split(" ",1)[1].strip() - gbp.log.debug("Topic %s found for %s" % (topic, patch)) - continue - elif (line.startswith("diff --git a/") or - line.startswith("---")): - in_patch = True + if line.lower().startswith("gbp-pq-topic: "): + topic = line.split(" ",1)[1].strip() + gbp.log.debug("Topic %s found for %s" % (topic, patch)) + continue tmp.write(line) - tmp.close() old.close() @@ -143,7 +133,8 @@ def export_patches(repo, branch, options): else: gbp.log.debug("%s does not exist." % PATCH_DIR) - patches = repo.format_patches(branch, pq_branch, PATCH_DIR) + patches = repo.format_patches(branch, pq_branch, PATCH_DIR, + signature=False) if patches: f = file(SERIES_FILE, 'w') gbp.log.info("Regenerating patch queue in '%s'." % PATCH_DIR) |