mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
sponsor-patch: Fix crash if Debian patch contains a slash.
This commit is contained in:
parent
9baf39a262
commit
f29e729852
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -19,6 +19,7 @@ ubuntu-dev-tools (0.144) UNRELEASED; urgency=low
|
|||||||
[ Benjamin Drung ]
|
[ Benjamin Drung ]
|
||||||
* seeded-in-ubuntu: State in error message that it takes a source package.
|
* seeded-in-ubuntu: State in error message that it takes a source package.
|
||||||
(LP: #1029155)
|
(LP: #1029155)
|
||||||
|
* sponsor-patch: Fix crash if Debian patch contains a slash.
|
||||||
|
|
||||||
-- Stefano Rivera <stefanor@ubuntu.com> Wed, 18 Jul 2012 12:47:01 +0200
|
-- Stefano Rivera <stefanor@ubuntu.com> Wed, 18 Jul 2012 12:47:01 +0200
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class Patch(object):
|
|||||||
|
|
||||||
def __init__(self, patch):
|
def __init__(self, patch):
|
||||||
self._patch = 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),
|
if not reduce(lambda r, x: r or self._patch.title.endswith(x),
|
||||||
(".debdiff", ".diff", ".patch"), False):
|
(".debdiff", ".diff", ".patch"), False):
|
||||||
Logger.info("Patch %s does not have a proper file extension." % \
|
Logger.info("Patch %s does not have a proper file extension." % \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user