facter-1.5.2-sortfix.patch
| facter-1.5.2-patched/lib/facter/util/fact.rb 2008-10-08 08:39:39.000000000 +0100 | ||
|---|---|---|
| 43 | 43 |
# a sorted list for looking up values. |
| 44 | 44 |
# We always want to look them up in the order of number of |
| 45 | 45 |
# confines, so the most restricted resolution always wins. |
| 46 |
@resolves.sort! { |a, b| b.length <=> a.length }
|
|
| 46 |
@resolves.sort_by { |a| -a.length }
|
|
| 47 | 47 | |
| 48 | 48 |
return resolve |
| 49 | 49 |
end |