also replace dashes
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / paths.rb
index 2394aa6..3fe23c4 100644 (file)
@@ -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