Skip to content

Commit

Permalink
don't include multipart uploads in the Vault#archives list.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Dec 22, 2012
1 parent c5e39a9 commit e23c00c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/icemelt/vault.rb
Expand Up @@ -91,7 +91,11 @@ def job id
def archives
return to_enum :archives unless block_given?

pairtree.list.map { |x| yield Archive.new(self, x) }
pairtree.list.map do |x|
a = Archive.new(self, x)
next if a.multipart_upload?
yield a
end
end

def archive id
Expand Down

0 comments on commit e23c00c

Please sign in to comment.