Skip to content

Commit

Permalink
(portage-#25) Don't modify persistent hash contents
Browse files Browse the repository at this point in the history
The previous implementation of PortageFile.build_line was modifying the
hash representation of a record when constructing lines, so each
successive write of the record would modify it more.

This would only affect package_use and package_keywords since they would
need to modify the record line while the portage_mask and portage_unmask
would directly write :name to disk.
  • Loading branch information
adrienthebo committed Feb 16, 2013
1 parent 2863ba9 commit 9357814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/util/portage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def format_atom(hash)
str << '-'
str << ver_hash[:version]
else
str = hash[:name]
str = hash[:name].dup
end

str
Expand Down

0 comments on commit 9357814

Please sign in to comment.