0001-Fix-2675-re-add-ending-slash-to-directory-names.patch
| b/lib/puppet/type/file.rb | ||
|---|---|---|
| 39 | 39 |
# path name. The aim is to use less storage for all common paths in a hierarchy |
| 40 | 40 |
munge do |value| |
| 41 | 41 |
path, name = File.split(value) |
| 42 |
{ :index => Puppet::FileCollection.collection.index(path), :name => name }
|
|
| 42 |
terminator = (value[-1,1] == File::SEPARATOR) ? File::SEPARATOR : '' |
|
| 43 |
{ :index => Puppet::FileCollection.collection.index(path), :name => name + terminator }
|
|
| 43 | 44 |
end |
| 44 | 45 | |
| 45 | 46 |
# and the reverse |
| 46 |
- |
|