sponsor-patch: Fix assertion error if a relative working directory

is specified.
This commit is contained in:
Benjamin Drung 2011-05-16 00:57:57 +02:00
parent cf40e7bccf
commit a5691d4cd1
2 changed files with 6 additions and 2 deletions

6
debian/changelog vendored
View File

@ -17,7 +17,11 @@ ubuntu-dev-tools (0.124) UNRELEASED; urgency=low
* bitesize, doc/bitesize.1: add script to tag a bug as bitesize and add a
comment that you are willing to help with fixing the bug.
-- Daniel Holbach <daniel.holbach@ubuntu.com> Mon, 09 May 2011 14:33:48 +0200
[ Benjamin Drung ]
* sponsor-patch: Fix assertion error if a relative working directory
is specified.
-- Benjamin Drung <bdrung@debian.org> Mon, 16 May 2011 00:57:40 +0200
ubuntu-dev-tools (0.122) unstable; urgency=low

View File

@ -253,7 +253,7 @@ def get_open_ubuntu_bug_task(launchpad, bug):
def sponsor_patch(bug_number, build, builder, edit, keyid, lpinstance, update,
upload, workdir, verbose=False):
workdir = os.path.expanduser(workdir)
workdir = os.path.realpath(os.path.expanduser(workdir))
if not os.path.isdir(workdir):
try:
os.makedirs(workdir)