make changes based on reviewer feedback

This commit is contained in:
Brian Murray 2011-04-19 12:43:25 -07:00
parent c38452bb43
commit 1d36de0fbb
3 changed files with 7 additions and 3 deletions

6
debian/changelog vendored
View File

@ -4,7 +4,11 @@ ubuntu-dev-tools (0.122) UNRELEASED; urgency=low
* lp-project-upload: Add an optional parameter for creating a new * lp-project-upload: Add an optional parameter for creating a new
milestone to add future bugs to. milestone to add future bugs to.
-- Ted Gould <ted@ubuntu.com> Tue, 19 Apr 2011 17:32:03 +0200 [ Brian Murray ]
* grab-attachments: download the attachments to a folder named after the bug
number e.g. bug-1
-- Brian Murray <brian@ubuntu.com> Tue, 19 Apr 2011 12:41:41 -0700
ubuntu-dev-tools (0.121) unstable; urgency=low ubuntu-dev-tools (0.121) unstable; urgency=low

View File

@ -7,7 +7,7 @@ grab\-attachments \- downloads attachments from a Launchpad bug
.B grab\-attachments \-h .B grab\-attachments \-h
.SH DESCRIPTION .SH DESCRIPTION
\fBgrab\-attachments\fR is a script to download all attachments from a \fBgrab\-attachments\fR is a script to download all attachments from a
Launchpad bug report into the current directory. Launchpad bug report into the a directory named after the bug e.g. bug-1.
.SH OPTIONS .SH OPTIONS
Listed below are the command line options for grab\-attachments: Listed below are the command line options for grab\-attachments:

View File

@ -61,7 +61,7 @@ def main():
try: try:
os.mkdir(bug_folder_name) os.mkdir(bug_folder_name)
except OSError, error: except OSError, error:
if 'file exists' in error: if error.errno == 17:
continue continue
for attachment in bug.attachments: for attachment in bug.attachments: