Install add-patch link and use it in sponsor-patch.

This commit is contained in:
Benjamin Drung 2010-12-26 15:16:33 +01:00
parent 1ef75a1a23
commit 6348bc3df1
2 changed files with 2 additions and 3 deletions

1
debian/links vendored
View File

@ -1,2 +1,3 @@
/usr/bin/edit-patch /usr/bin/add-patch
/usr/bin/pbuilder-dist /usr/bin/cowbuilder-dist
/usr/share/man/man1/pbuilder-dist.1.gz /usr/share/man/man1/cowbuilder-dist.1.gz

View File

@ -195,9 +195,7 @@ def apply_patch(task, patch):
ask_for_manual_fixing()
edit = True
else:
# FIXME: edit-patch needs a non-interactive mode
# https://launchpad.net/bugs/612566
cmd = ["edit-patch", patch.full_path]
cmd = ["add-patch", patch.full_path]
Logger.command(cmd)
if subprocess.call(cmd) != 0:
Logger.error("Failed to apply diff %s to %s %s." % \