puppet-0.25.4-portage-provider-result.patch
| puppet-0.25.4-new/lib/puppet/provider/package/portage.rb 2010-04-23 14:46:59.000000000 -0400 | ||
|---|---|---|
| 12 | 12 |
defaultfor :operatingsystem => :gentoo |
| 13 | 13 | |
| 14 | 14 |
def self.instances |
| 15 |
result_format = /(\S+) (\S+) \[(\S+)\] \[(\S+)\] (\S+) (.*)/
|
|
| 15 |
result_format = /^(\S+)\s+(\S+)\s+\[(\S+)\]\s+\[(\S+)\]\s+(\S+)\s+(.*)$/
|
|
| 16 | 16 |
result_fields = [:category, :name, :ensure, :version_available, :vendor, :description] |
| 17 | 17 | |
| 18 | 18 |
version_format = "{last}<version>{}"
|
| ... | ... | |
| 72 | 72 |
end |
| 73 | 73 | |
| 74 | 74 |
def query |
| 75 |
result_format = /(\S+) (\S+) \[(\S*)\] \[(\S+)\] (\S+) (.*)/
|
|
| 75 |
result_format = /^(\S+)\s+(\S+)\s+\[(\S*)\]\s+\[(\S+)\]\s+(\S+)\s+(.*)$/
|
|
| 76 | 76 |
result_fields = [:category, :name, :ensure, :version_available, :vendor, :description] |
| 77 | 77 | |
| 78 | 78 |
version_format = "{last}<version>{}"
|