[S3]Only add multipart part_id to partlist if it is not already in there. Closes #324.

This commit is contained in:
Steve Pulec 2015-03-05 19:32:02 -05:00
parent bf32bdc042
commit 07dd6e554e

View File

@ -152,7 +152,8 @@ class FakeMultipart(object):
key = FakeKey(part_id, value)
self.parts[part_id] = key
insort(self.partlist, part_id)
if part_id not in self.partlist:
insort(self.partlist, part_id)
return key
def list_parts(self):