projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
202b871
)
also replace dashes
author
Peter Palfrader
<peter@palfrader.org>
Mon, 21 Dec 2015 19:25:55 +0000
(20:25 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Mon, 21 Dec 2015 19:25:55 +0000
(20:25 +0100)
modules/debian-org/lib/facter/paths.rb
patch
|
blob
|
history
diff --git
a/modules/debian-org/lib/facter/paths.rb
b/modules/debian-org/lib/facter/paths.rb
index
2394aa6
..
3fe23c4
100644
(file)
--- a/
modules/debian-org/lib/facter/paths.rb
+++ b/
modules/debian-org/lib/facter/paths.rb
@@
-7,7
+7,7
@@
/srv/mirrors/debian-debug
/srv/mirrors/debian-security
}.each do |path|
- Facter.add("has" + path.gsub(
'/'
,'_')) do
+ Facter.add("has" + path.gsub(
/[\/-]/
,'_')) do
setcode do
if FileTest.exist?(path)
true