diff --git a/debian/changelog b/debian/changelog index 7ab8d1d..447d371 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,7 @@ ubuntu-dev-tools (0.144) UNRELEASED; urgency=low [ Benjamin Drung ] * seeded-in-ubuntu: State in error message that it takes a source package. (LP: #1029155) + * sponsor-patch: Fix crash if Debian patch contains a slash. -- Stefano Rivera Wed, 18 Jul 2012 12:47:01 +0200 diff --git a/ubuntutools/sponsor_patch/patch.py b/ubuntutools/sponsor_patch/patch.py index c3db20a..931a533 100644 --- a/ubuntutools/sponsor_patch/patch.py +++ b/ubuntutools/sponsor_patch/patch.py @@ -28,7 +28,7 @@ class Patch(object): def __init__(self, patch): self._patch = patch - self._patch_file = re.sub(" ", "_", patch.title) + self._patch_file = re.sub(" |/", "_", patch.title) if not reduce(lambda r, x: r or self._patch.title.endswith(x), (".debdiff", ".diff", ".patch"), False): Logger.info("Patch %s does not have a proper file extension." % \